[Issue] Enable/disable datamap not work on 1.5.0-SNAPSHOT

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue] Enable/disable datamap not work on 1.5.0-SNAPSHOT

aaron
Hi community,

Disable/Enable datamap does not work on 1.5.0-SNAPSHOT.


Stacktrace,

scala> carbon.sql("show datamap on table test1").show(truncate=false)
+-----------+----------+---------------------+------------------------------------------+
|DataMapName|ClassName |Associated Table     |DataMap Properties                      
|
+-----------+----------+---------------------+------------------------------------------+
|agg_day    |timeSeries|default.test1_agg_day|'day_granularity'='1',
'event_time'='date'|
+-----------+----------+---------------------+------------------------------------------+

scala> carbon.sql("SET carbon.datamap.visible.default.test1.agg_day =
false")
org.apache.carbondata.core.exception.InvalidConfigurationException: Invalid
configuration of carbon.datamap.visible.default.test1.agg_day, datamap does
not exist
  at
org.apache.carbondata.core.util.SessionParams.validateKeyValue(SessionParams.java:246)
  at
org.apache.carbondata.core.util.SessionParams.addProperty(SessionParams.java:121)
  at
org.apache.carbondata.core.util.SessionParams.addProperty(SessionParams.java:110)
  at
org.apache.spark.sql.hive.execution.command.CarbonSetCommand$.validateAndSetValue(CarbonHiveCommands.scala:112)
  at
org.apache.spark.sql.hive.execution.command.CarbonSetCommand.run(CarbonHiveCommands.scala:74)
  at
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:58)
  at
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult(commands.scala:56)
  at
org.apache.spark.sql.execution.command.ExecutedCommandExec.executeCollect(commands.scala:67)
  at org.apache.spark.sql.Dataset.<init>(Dataset.scala:183)
  at
org.apache.spark.sql.CarbonSession$$anonfun$sql$1.apply(CarbonSession.scala:106)
  at
org.apache.spark.sql.CarbonSession$$anonfun$sql$1.apply(CarbonSession.scala:95)
  at
org.apache.spark.sql.CarbonSession.withProfiler(CarbonSession.scala:153)
  at org.apache.spark.sql.CarbonSession.sql(CarbonSession.scala:93)
  ... 50 elided

Thanks
Aaron



--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: [Issue] Enable/disable datamap not work on 1.5.0-SNAPSHOT

xuchuanyin
enable/disable datamap only works for index datamap, we do not support other
types of datamap such as preagg/MV/ default Block/Blocklet datamap yet.

If you found any confusing document in datamap, you can help to revise it.



--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/