Aleksandar Trajković created SPARK-59865:
--------------------------------------------

             Summary: Decide Oracle TimestampNTZ wall-clock conversion from 
JDBCOptions instead of column metadata
                 Key: SPARK-59865
                 URL: https://issues.apache.org/jira/browse/SPARK-59865
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 4.4.0
            Reporter: Aleksandar Trajković


SPARK-58876 decides per column whether Oracle TimestampNTZ values are read and 
written as
wall-clock LocalDateTime: OracleDialect stamps a marker into the column 
metadata, and writes
rely on a new JdbcDialect.updateExtraColumnMetaForWrite hook. The decision is 
not per column;
it depends only on the dialect and 
spark.sql.legacy.oracle.timestampNTZMapping.enabled.

Replace the markers with a JdbcDialect.timestampNTZAsWallClock(options: 
JDBCOptions) hook, and
snapshot the legacy flag in JDBCOptions so a flag change after planning does 
not change the
planned conversion (the V2 JDBC catalog pins the snapshot into the table 
options).
updateExtraColumnMetaForWrite is removed; it has not been released.



--
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