[
https://issues.apache.org/jira/browse/SPARK-59342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gengliang Wang resolved SPARK-59342.
------------------------------------
Fix Version/s: 4.4.0
Resolution: Fixed
Issue resolved by pull request 58632
[https://github.com/apache/spark/pull/58632]
> 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
> Fix For: 4.4.0
>
>
> 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]