[
https://issues.apache.org/jira/browse/IGNITE-20905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maksim Zhuravkov updated IGNITE-20905:
--------------------------------------
Fix Version/s: 3.0.0-beta2
> Make it possible to add an explicitly NULL column via ADD COLUMN
> ----------------------------------------------------------------
>
> Key: IGNITE-20905
> URL: https://issues.apache.org/jira/browse/IGNITE-20905
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Reporter: Roman Puchkovskiy
> Assignee: Maksim Zhuravkov
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0.0-beta2
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When creating a table, it's possible to specify that a column is nullable by
> explicitly using NULL:
> CREATE TABLE t(id INT PRIMARY KEY, col1 INT NULL)
> But, if we add a column to an existing table, this does not work:
> ALTER TABLE t ADD COLUMN col2 INT NULL
> -> Failed to parse query: Encountered "NULL" at line 1, column X
> It seems that for consistency ADD COLUMN should support same syntax as CREATE
> TABLE does.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)