diff --git a/coral-hive/src/main/antlr/roots/com/linkedin/coral/hive/hive2rel/parsetree/parser/HiveLexer.g b/coral-hive/src/main/antlr/roots/com/linkedin/coral/hive/hive2rel/parsetree/parser/HiveLexer.g index 470b1b8fb..36f8c63b5 100644 --- a/coral-hive/src/main/antlr/roots/com/linkedin/coral/hive/hive2rel/parsetree/parser/HiveLexer.g +++ b/coral-hive/src/main/antlr/roots/com/linkedin/coral/hive/hive2rel/parsetree/parser/HiveLexer.g @@ -34,7 +34,12 @@ import org.apache.hadoop.hive.conf.HiveConf; } protected boolean allowQuotedId() { - String supportedQIds = HiveConf.getVar(hiveConf, HiveConf.ConfVars.HIVE_QUOTEDID_SUPPORT); + String supportedQIds; + if (hiveConf == null) { + supportedQIds = HiveConf.ConfVars.HIVE_QUOTEDID_SUPPORT.getDefaultValue(); + } else { + supportedQIds = HiveConf.getVar(hiveConf, HiveConf.ConfVars.HIVE_QUOTEDID_SUPPORT); + } return !"none".equals(supportedQIds); } }