Github user anubhav100 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1347#discussion_r138604260
--- Diff: integration/hive/hive-guide.md ---
@@ -91,7 +91,6 @@ $HIVE_HOME/bin/hive
### Query data from hive table
```
-alter table hive_carbon set location '<hdfs store path>/hive_carbon';
--- End diff --
@chenliang613 this code right here
val serdeInfo = table.getSd.getSerdeInfo
serdeInfo.setSerializationLib("org.apache.carbondata.hive.CarbonHiveSerDe")
val tablePath = serdeInfo.getParameters.get("tablePath")
if (tablePath != null) {
table.getSd.setLocation(tablePath)
}
---