spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Heuer (Jira)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-30833) Extract o.a.s.sql.catalyst.util.ParseMode to external project
Date Fri, 14 Feb 2020 20:02:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-30833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Heuer updated SPARK-30833:
----------------------------------
    Description: 
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.

 

  was:
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.

 


> 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
>            Priority: Minor
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message