You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Daniel (Jira)" <ji...@apache.org> on 2023/12/11 21:53:00 UTC

[jira] [Commented] (SPARK-46370) Fix bug when querying from table after changing defaults

    [ https://issues.apache.org/jira/browse/SPARK-46370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17795514#comment-17795514 ] 

Daniel commented on SPARK-46370:
--------------------------------

The bug is here:

 

{{drop table if exists t;}}
{{create table t(i int, s string default 'def') using parquet;}}
{{insert into t select 1, default;}}
{{alter table t alter column s drop default;}}
{{insert into t select 2, default;}}
{{select * from t;  -- Removing this line changes the following results!}}
{{alter table t alter column s set default 'mno';}}
{{insert into t select 3, default;}}
{{select * from t;}}

 

 

> Fix bug when querying from table after changing defaults
> --------------------------------------------------------
>
>                 Key: SPARK-46370
>                 URL: https://issues.apache.org/jira/browse/SPARK-46370
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 4.0.0
>            Reporter: Daniel
>            Priority: Major
>




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