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

Gengliang Wang reassigned SPARK-59342:
--------------------------------------

    Assignee: Johan Lasperas

> Allow configuring schema alignment behavior for DSv2 writes
> -----------------------------------------------------------
>
>                 Key: SPARK-59342
>                 URL: https://issues.apache.org/jira/browse/SPARK-59342
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.4.0
>            Reporter: Johan Lasperas
>            Assignee: Johan Lasperas
>            Priority: Major
>              Labels: pull-request-available
>
> Allow connectors configuring schema alignment behavior under 
> `spark.sql.storeAssignmentPolicy` = `ANSI`: accept implicit casts at 
> analysis, and rely on execution time checks to catch malformed values or 
> overflows
> The proposal is to extend the DSv2 interface to allow configuring this 
> behavior per table:
> {code:java}
> public interface ConfigurableSchemaAlignment extends Table {
>   SchemaAlignmentConfig schemaAlignmentConfig();
> }
> public interface SchemaAlignmentConfig {
>   default AnsiStoreAssignmentCastCheck ansiStoreAssignmentCastCheck() {
>     // AT_ANALYSIS or AT_RUNTIME.
>     return AnsiStoreAssignmentCastCheck.AT_ANALYSIS;
>   }
> } {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to