Michael Heuer created SPARK-30833: ------------------------------------- Summary: Extract o.a.s.sql.catalyst.util.ParseMode to external project Key: SPARK-30833 URL: https://issues.apache.org/jira/browse/SPARK-30833 Project: Spark Issue Type: Improvement Components: SQL Affects Versions: 2.4.5 Reporter: Michael Heuer
In multiple projects downstream of Spark, we use an enum {code:java} enum ValidationStringency { STRICT, LENIENT, SILENT } {code} This is similar to but not the same as [ParseMode|https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/ParseMode.scala] in the SQL Catalyst utility package {code:java} enum ParseMode { FAILFAST, DROPMALFORMED, PERMISSIVE } {code} I wonder if there might be interest in extracting this enum to a project external to Spark, along with some related utility code, and refactoring Spark to use that external reference? It would also be more convenient to use a Java enum instead of Scala one, if that does not cause trouble for Spark. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org