Jonathancui123 commented on code in PR #36871: URL: https://github.com/apache/spark/pull/36871#discussion_r906233209
########## core/src/main/resources/error/error-classes.json: ########## @@ -23,6 +23,12 @@ ], "sqlState" : "22005" }, + "CANNOT_INFER_DATE" : { + "message" : [ + "Cannot infer date in schema inference when LegacyTimeParserPolicy is \"LEGACY\". Legacy Date formatter does not support strict date format matching which is required to avoid inferring timestamps and other non-date entries to date." + ], + "sqlState" : "22005" Review Comment: Is this the right sqlState code? Tests would not pass until I added a sqlState code -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org