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

Iurii Gerzhedovich resolved IGNITE-22421.
-----------------------------------------
    Resolution: Fixed

[~mzhuravkov] Thanks for the contribution!

merged commit 
[{{adf9194}}|https://github.com/apache/ignite-3/commit/adf91949fc10f11441f02bc9ac51cb27a0005c8c]
 into main

> Sql. Interval type. DDL statements should return a proper error
> ---------------------------------------------------------------
>
>                 Key: IGNITE-22421
>                 URL: https://issues.apache.org/jira/browse/IGNITE-22421
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>            Reporter: Maksim Zhuravkov
>            Assignee: Maksim Zhuravkov
>            Priority: Minor
>              Labels: ignite-3
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> DDL statements that use INTERVAL type in column definitions return the 
> following errors:
> *Current behaviour*
> {noformat}
> CREATE TABLE t (a INTERVAL MONTH, b INT, PRIMARY KEY(a))
> Err: Precision definition is necessary for column 'A' of type 'PERIOD'
> CREATE TABLE t (a INTERVAL SECOND, b INT, PRIMARY KEY(a))
> Err:  Scale is not applicable for column 'A' of type 'DURATION'
> ALTER TABLE t ADD COLUMN c INTERVAL YEAR TO MONTH
> Precision definition is necessary for column 'C' of type 'PERIOD'
> {noformat}
> *Expected behaviour*
> Both statements should return an error that clearly indicates that INTERVAL 
> types cannot be used in this context.



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

Reply via email to