Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
4.0.0
Description
In HiveParser.g#L866 we have the following code:
protected boolean nullsLast() { if(hiveConf == null){ return false; } return HiveConf.getBoolVar(hiveConf, HiveConf.ConfVars.HIVE_DEFAULT_NULLS_LAST); }
so when no hive config is available, we return "false", while we should return the property's default value:
protected boolean nullsLast() { if(hiveConf == null){ return HiveConf.ConfVars.HIVE_DEFAULT_NULLS_LAST.defaultBoolVal; } return HiveConf.getBoolVar(hiveConf, HiveConf.ConfVars.HIVE_DEFAULT_NULLS_LAST); }
Attachments
Issue Links
- is related to
-
HIVE-25905 ORDER BY colName DESC does not honour 'hive.default.nulls.last' property in absence of NULLS_LAST/FIRST
- Resolved
- links to