hortonworks-spark / spark-llap

Apache License 2.0
101 stars 68 forks source link

Create table does not show Hive exceptions. #256

Open ghost opened 5 years ago

ghost commented 5 years ago

This doesn't throw any exception about the underscore. Table is not created. hive.createTable("test2").column("_dvc", "string").create()

This is throwing exception, looks ok val df = hive.executeQuery("CREATE TABLE default.test2 (_dvc string) STORED AS ORC") Exception: java.lang.RuntimeException: java.io.IOException: shadehive.org.apache.hive.service.cli.HiveSQLException: java.io.IOException: org.apache.hadoop.hive.ql.metadata.HiveException: Failed to compile query: org.apache.hadoop.hive.ql.parse.ParseException: line 1:30 cannot recognize input near '_dvc' 'string' ')' in column name or constraint