mihaibudiu commented on code in PR #238:
URL: https://github.com/apache/calcite-avatica/pull/238#discussion_r1530647044


##########
core/src/main/java/org/apache/calcite/avatica/util/DateTimeUtils.java:
##########
@@ -739,6 +744,25 @@ private static int parseFraction(String v, int multiplier) 
{
     return r;
   }
 
+  /** Lenient date validation.  This accepts more date strings
+   * than validateDate: it does not insist on having two-digit
+   * values for days and months, and accepts spaces around the value.
+   * @param s     A string representing a date.
+   */
+  private static void validateLenientDate(String s) {

Review Comment:
   This does the exact same validation as the existing function validateDate.
   So maybe we should improve that function too.



-- 
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]

Reply via email to