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
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