zabetak commented on code in PR #4777:
URL: https://github.com/apache/hive/pull/4777#discussion_r1360398549


##########
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java:
##########
@@ -3860,6 +3860,17 @@ public static enum ConfVars {
         "is discouraged. It suffers from known bugs that are unlikely to be 
fixed in subsequent versions of the product." +
         "Furthermore, using SIMPLE formatter may lead to strange behavior, and 
unexpected results when combined " +
         "with SQL functions/operators that are using the new DATETIME 
formatter."),
+
+    HIVE_DATETIME_RESOLVERSTYLE("hive.datetime.resolver.style", "SMART", new 
StringSet("SMART", "STRICT", "LENIENT"),
+        "* SMART: Using smart resolution will perform the sensible default for 
each field,For example," +
+            " Any value beyond the last valid day-of-month will be converted 
to the last valid day-of-month." +
+            "* STRICT: Using strict resolution will ensure that all parsed 
values are within the outer range of valid" +
+            " values for the field. For example, resolving year-month and 
day-of-month will ensure that" +
+            " the day-of-month is valid for the year-month, rejecting invalid 
values." +
+            "* LENIENT: Using lenient resolution will resolve the values in an 
appropriate lenient manner. For " +
+            "example, lenient mode allows the month to be outside the range 1 
to 12. " +
+            "For example, month 15 is treated as being 3 months after month 
12."),

Review Comment:
   We decided to keep LENIENT. See 
https://github.com/apache/hive/pull/4777#discussion_r1354861922



-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to