You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Uroš Bojanić (Jira)" <ji...@apache.org> on 2026/08/02 16:51:00 UTC

[jira] [Resolved] (SPARK-57835) Define read behavior for persisted nanosecond-typed tables when the preview flag is off

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

Uroš Bojanić resolved SPARK-57835.
----------------------------------
    Fix Version/s: 4.3.0
       Resolution: Fixed

Issue resolved by pull request 57700
[https://github.com/apache/spark/pull/57700]

> Define read behavior for persisted nanosecond-typed tables when the preview flag is off
> ---------------------------------------------------------------------------------------
>
>                 Key: SPARK-57835
>                 URL: https://issues.apache.org/jira/browse/SPARK-57835
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 4.3.0
>            Reporter: Max Gekk
>            Assignee: Stevo Mitric
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.3.0
>
>
> This sub-task is part of the umbrella SPARK-56822 (timestamps with nanosecond precision).
> h2. Problem
> {{DataType.fromJson}} for nanosecond precision calls {{checkTimestampNanosTypesEnabled()}} (DataType.scala ~L255-276), so a table created with {{spark.sql.timestampNanosTypes.enabled=true}} cannot be loaded with the flag off (DataTypeSuite ~L1596-1610). This cross-flag / cross-version policy is undefined for real catalog tables/views.
> h2. Goal
> Define and implement a clear policy for reading a persisted nanosecond-typed table/view when the preview flag is off (e.g. a specific actionable error), covered by metastore / DESCRIBE / SHOW CREATE / view round-trip tests.
> h2. Scope
> Decide the policy; make the catalog restore path raise a clear, consistent error (or permit read); add e2e tests including {{DESCRIBE}}, {{SHOW CREATE TABLE}}, and view persistence with nanosecond columns.
> h2. Acceptance criteria
> * Loading a nanosecond table with the flag off yields the defined behavior with a clear message; DDL command outputs render nanosecond columns correctly.
> h2. Testing
> {{HiveExternalCatalogSuite}}, command/DDL suites.
> h2. Dependencies
> Relates to the isHiveCompatibleDataType sub-task (both touch catalog restore); can land independently.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org