Skip to content

Commit

Permalink
BDP-7120 Use default value for HIVE_QUOTEDID_SUPPORT when hiveConf is…
Browse files Browse the repository at this point in the history
… null in coral-hive (#111)

Co-authored-by: Nagarathnam Muthusamy <[email protected]>
  • Loading branch information
nagarathnam200 and Nagarathnam Muthusamy authored Jul 20, 2021
1 parent 3316d2e commit 10becab
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 10becab

Please sign in to comment.