rubenada commented on code in PR #6523:
URL: https://github.com/apache/hive/pull/6523#discussion_r3612807418
##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java:
##########
@@ -559,6 +560,14 @@ public static void closeCurrent() {
hiveDB.remove();
}
+ public static void setCalciteSystemProperties() {
+ // turn off calcite rexnode normalization
+ System.setProperty("calcite.enable.rexnode.digest.normalize", "false");
+ // update calcite default charset, consistent with
HiveTypeFactory#getDefaultCharset
+ System.setProperty("calcite.default.charset",
ConversionUtil.NATIVE_UTF16_CHARSET_NAME);
+ System.setProperty("calcite.default.nationalcharset",
ConversionUtil.NATIVE_UTF16_CHARSET_NAME);
+ }
+
Review Comment:
Good point. I've refactored the properties into a new `saffron.properties`
file, much cleaner.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]