[jira] [Updated] (FLINK-24306) group by index throw SqlValidatorException
[ https://issues.apache.org/jira/browse/FLINK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Weijie Guo updated FLINK-24306: --- Fix Version/s: 2.0.0 (was: 1.20.0) > group by index throw SqlValidatorException > -- > > Key: FLINK-24306 > URL: https://issues.apache.org/jira/browse/FLINK-24306 > Project: Flink > Issue Type: Bug > Components: Table SQL / API >Affects Versions: 1.12.2, 1.13.1, 1.14.2 >Reporter: zlzhang0122 >Priority: Major > Labels: pull-request-available > Fix For: 2.0.0 > > Attachments: calcite.png, sql_exception.png > > > We create a table using following DDL: > {code:java} > create table if not exists datagen_source ( > id int, > name string, > sex string, > age int, > birthday string, > proc_time as proctime() > ) with ( > 'connector' = 'datagen', > 'rows-per-second' = '1', > 'fields.id.kind' = 'random', > 'fields.id.min' = '1', > 'fields.id.max' = '200');{code} > When we running > {code:java} > select id, count(*) from datagen_source group by id;{code} > Everything will be fine.But if we running > {code:java} > select id, count(*) from datagen_source group by 1;{code} > We will get a SqlValidatorException like this: > !sql_exception.png! > Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink > also should support this syntax too. > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (FLINK-24306) group by index throw SqlValidatorException
[ https://issues.apache.org/jira/browse/FLINK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] lincoln lee updated FLINK-24306: Fix Version/s: (was: 1.19.0) > group by index throw SqlValidatorException > -- > > Key: FLINK-24306 > URL: https://issues.apache.org/jira/browse/FLINK-24306 > Project: Flink > Issue Type: Bug > Components: Table SQL / API >Affects Versions: 1.12.2, 1.13.1, 1.14.2 >Reporter: zlzhang0122 >Priority: Major > Labels: pull-request-available > Fix For: 1.20.0 > > Attachments: calcite.png, sql_exception.png > > > We create a table using following DDL: > {code:java} > create table if not exists datagen_source ( > id int, > name string, > sex string, > age int, > birthday string, > proc_time as proctime() > ) with ( > 'connector' = 'datagen', > 'rows-per-second' = '1', > 'fields.id.kind' = 'random', > 'fields.id.min' = '1', > 'fields.id.max' = '200');{code} > When we running > {code:java} > select id, count(*) from datagen_source group by id;{code} > Everything will be fine.But if we running > {code:java} > select id, count(*) from datagen_source group by 1;{code} > We will get a SqlValidatorException like this: > !sql_exception.png! > Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink > also should support this syntax too. > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (FLINK-24306) group by index throw SqlValidatorException
[ https://issues.apache.org/jira/browse/FLINK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] lincoln lee updated FLINK-24306: Fix Version/s: 1.20.0 > group by index throw SqlValidatorException > -- > > Key: FLINK-24306 > URL: https://issues.apache.org/jira/browse/FLINK-24306 > Project: Flink > Issue Type: Bug > Components: Table SQL / API >Affects Versions: 1.12.2, 1.13.1, 1.14.2 >Reporter: zlzhang0122 >Priority: Major > Labels: pull-request-available > Fix For: 1.19.0, 1.20.0 > > Attachments: calcite.png, sql_exception.png > > > We create a table using following DDL: > {code:java} > create table if not exists datagen_source ( > id int, > name string, > sex string, > age int, > birthday string, > proc_time as proctime() > ) with ( > 'connector' = 'datagen', > 'rows-per-second' = '1', > 'fields.id.kind' = 'random', > 'fields.id.min' = '1', > 'fields.id.max' = '200');{code} > When we running > {code:java} > select id, count(*) from datagen_source group by id;{code} > Everything will be fine.But if we running > {code:java} > select id, count(*) from datagen_source group by 1;{code} > We will get a SqlValidatorException like this: > !sql_exception.png! > Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink > also should support this syntax too. > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (FLINK-24306) group by index throw SqlValidatorException
[ https://issues.apache.org/jira/browse/FLINK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jing Ge updated FLINK-24306: Fix Version/s: 1.19.0 (was: 1.18.0) > group by index throw SqlValidatorException > -- > > Key: FLINK-24306 > URL: https://issues.apache.org/jira/browse/FLINK-24306 > Project: Flink > Issue Type: Bug > Components: Table SQL / API >Affects Versions: 1.12.2, 1.13.1, 1.14.2 >Reporter: zlzhang0122 >Priority: Major > Labels: pull-request-available > Fix For: 1.19.0 > > Attachments: calcite.png, sql_exception.png > > > We create a table using following DDL: > {code:java} > create table if not exists datagen_source ( > id int, > name string, > sex string, > age int, > birthday string, > proc_time as proctime() > ) with ( > 'connector' = 'datagen', > 'rows-per-second' = '1', > 'fields.id.kind' = 'random', > 'fields.id.min' = '1', > 'fields.id.max' = '200');{code} > When we running > {code:java} > select id, count(*) from datagen_source group by id;{code} > Everything will be fine.But if we running > {code:java} > select id, count(*) from datagen_source group by 1;{code} > We will get a SqlValidatorException like this: > !sql_exception.png! > Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink > also should support this syntax too. > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (FLINK-24306) group by index throw SqlValidatorException
[ https://issues.apache.org/jira/browse/FLINK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xintong Song updated FLINK-24306: - Fix Version/s: 1.18.0 (was: 1.17.0) > group by index throw SqlValidatorException > -- > > Key: FLINK-24306 > URL: https://issues.apache.org/jira/browse/FLINK-24306 > Project: Flink > Issue Type: Bug > Components: Table SQL / API >Affects Versions: 1.12.2, 1.13.1, 1.14.2 >Reporter: zlzhang0122 >Priority: Major > Labels: pull-request-available > Fix For: 1.18.0 > > Attachments: calcite.png, sql_exception.png > > > We create a table using following DDL: > {code:java} > create table if not exists datagen_source ( > id int, > name string, > sex string, > age int, > birthday string, > proc_time as proctime() > ) with ( > 'connector' = 'datagen', > 'rows-per-second' = '1', > 'fields.id.kind' = 'random', > 'fields.id.min' = '1', > 'fields.id.max' = '200');{code} > When we running > {code:java} > select id, count(*) from datagen_source group by id;{code} > Everything will be fine.But if we running > {code:java} > select id, count(*) from datagen_source group by 1;{code} > We will get a SqlValidatorException like this: > !sql_exception.png! > Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink > also should support this syntax too. > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (FLINK-24306) group by index throw SqlValidatorException
[ https://issues.apache.org/jira/browse/FLINK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Huang Xingbo updated FLINK-24306: - Fix Version/s: 1.17.0 (was: 1.16.0) > group by index throw SqlValidatorException > -- > > Key: FLINK-24306 > URL: https://issues.apache.org/jira/browse/FLINK-24306 > Project: Flink > Issue Type: Bug > Components: Table SQL / API >Affects Versions: 1.12.2, 1.13.1, 1.14.2 >Reporter: zlzhang0122 >Priority: Major > Labels: pull-request-available > Fix For: 1.17.0 > > Attachments: calcite.png, sql_exception.png > > > We create a table using following DDL: > {code:java} > create table if not exists datagen_source ( > id int, > name string, > sex string, > age int, > birthday string, > proc_time as proctime() > ) with ( > 'connector' = 'datagen', > 'rows-per-second' = '1', > 'fields.id.kind' = 'random', > 'fields.id.min' = '1', > 'fields.id.max' = '200');{code} > When we running > {code:java} > select id, count(*) from datagen_source group by id;{code} > Everything will be fine.But if we running > {code:java} > select id, count(*) from datagen_source group by 1;{code} > We will get a SqlValidatorException like this: > !sql_exception.png! > Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink > also should support this syntax too. > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (FLINK-24306) group by index throw SqlValidatorException
[ https://issues.apache.org/jira/browse/FLINK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zlzhang0122 updated FLINK-24306: Affects Version/s: 1.14.2 > group by index throw SqlValidatorException > -- > > Key: FLINK-24306 > URL: https://issues.apache.org/jira/browse/FLINK-24306 > Project: Flink > Issue Type: Bug > Components: Table SQL / API >Affects Versions: 1.12.2, 1.13.1, 1.14.2 >Reporter: zlzhang0122 >Priority: Major > Labels: pull-request-available > Fix For: 1.16.0 > > Attachments: calcite.png, sql_exception.png > > > We create a table using following DDL: > {code:java} > create table if not exists datagen_source ( > id int, > name string, > sex string, > age int, > birthday string, > proc_time as proctime() > ) with ( > 'connector' = 'datagen', > 'rows-per-second' = '1', > 'fields.id.kind' = 'random', > 'fields.id.min' = '1', > 'fields.id.max' = '200');{code} > When we running > {code:java} > select id, count(*) from datagen_source group by id;{code} > Everything will be fine.But if we running > {code:java} > select id, count(*) from datagen_source group by 1;{code} > We will get a SqlValidatorException like this: > !sql_exception.png! > Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink > also should support this syntax too. > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (FLINK-24306) group by index throw SqlValidatorException
[ https://issues.apache.org/jira/browse/FLINK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated FLINK-24306: --- Labels: pull-request-available (was: ) > group by index throw SqlValidatorException > -- > > Key: FLINK-24306 > URL: https://issues.apache.org/jira/browse/FLINK-24306 > Project: Flink > Issue Type: Bug > Components: Table SQL / API >Affects Versions: 1.12.2, 1.13.1 >Reporter: zlzhang0122 >Priority: Major > Labels: pull-request-available > Fix For: 1.16.0 > > Attachments: calcite.png, sql_exception.png > > > We create a table using following DDL: > {code:java} > create table if not exists datagen_source ( > id int, > name string, > sex string, > age int, > birthday string, > proc_time as proctime() > ) with ( > 'connector' = 'datagen', > 'rows-per-second' = '1', > 'fields.id.kind' = 'random', > 'fields.id.min' = '1', > 'fields.id.max' = '200');{code} > When we running > {code:java} > select id, count(*) from datagen_source group by id;{code} > Everything will be fine.But if we running > {code:java} > select id, count(*) from datagen_source group by 1;{code} > We will get a SqlValidatorException like this: > !sql_exception.png! > Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink > also should support this syntax too. > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (FLINK-24306) group by index throw SqlValidatorException
[ https://issues.apache.org/jira/browse/FLINK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yun Gao updated FLINK-24306: Fix Version/s: 1.16.0 > group by index throw SqlValidatorException > -- > > Key: FLINK-24306 > URL: https://issues.apache.org/jira/browse/FLINK-24306 > Project: Flink > Issue Type: Bug > Components: Table SQL / API >Affects Versions: 1.12.2, 1.13.1 >Reporter: zlzhang0122 >Priority: Major > Fix For: 1.15.0, 1.16.0 > > Attachments: calcite.png, sql_exception.png > > > We create a table using following DDL: > {code:java} > create table if not exists datagen_source ( > id int, > name string, > sex string, > age int, > birthday string, > proc_time as proctime() > ) with ( > 'connector' = 'datagen', > 'rows-per-second' = '1', > 'fields.id.kind' = 'random', > 'fields.id.min' = '1', > 'fields.id.max' = '200');{code} > When we running > {code:java} > select id, count(*) from datagen_source group by id;{code} > Everything will be fine.But if we running > {code:java} > select id, count(*) from datagen_source group by 1;{code} > We will get a SqlValidatorException like this: > !sql_exception.png! > Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink > also should support this syntax too. > -- This message was sent by Atlassian Jira (v8.20.1#820001)
[jira] [Updated] (FLINK-24306) group by index throw SqlValidatorException
[ https://issues.apache.org/jira/browse/FLINK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zlzhang0122 updated FLINK-24306: Attachment: calcite.png > group by index throw SqlValidatorException > -- > > Key: FLINK-24306 > URL: https://issues.apache.org/jira/browse/FLINK-24306 > Project: Flink > Issue Type: Bug > Components: Table SQL / API >Affects Versions: 1.12.2, 1.13.1 >Reporter: zlzhang0122 >Priority: Major > Fix For: 1.15.0 > > Attachments: calcite.png, sql_exception.png > > > We create a table using following DDL: > {code:java} > create table if not exists datagen_source ( > id int, > name string, > sex string, > age int, > birthday string, > proc_time as proctime() > ) with ( > 'connector' = 'datagen', > 'rows-per-second' = '1', > 'fields.id.kind' = 'random', > 'fields.id.min' = '1', > 'fields.id.max' = '200');{code} > When we running > {code:java} > select id, count(*) from datagen_source group by id;{code} > Everything will be fine.But if we running > {code:java} > select id, count(*) from datagen_source group by 1;{code} > We will get a SqlValidatorException like this: > !sql_exception.png! > Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink > also should support this syntax too. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (FLINK-24306) group by index throw SqlValidatorException
[ https://issues.apache.org/jira/browse/FLINK-24306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] zlzhang0122 updated FLINK-24306: Description: We create a table using following DDL: {code:java} create table if not exists datagen_source ( id int, name string, sex string, age int, birthday string, proc_time as proctime() ) with ( 'connector' = 'datagen', 'rows-per-second' = '1', 'fields.id.kind' = 'random', 'fields.id.min' = '1', 'fields.id.max' = '200');{code} When we running {code:java} select id, count(*) from datagen_source group by id;{code} Everything will be fine.But if we running {code:java} select id, count(*) from datagen_source group by 1;{code} We will get a SqlValidatorException like this: !sql_exception.png! Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink also should support this syntax too. was: We create a table using following DDL: {code:java} create table if not exists datagen_source ( id int, name string, sex string, age int, birthday string, proc_time as proctime() ) with ( 'connector' = 'datagen', 'rows-per-second' = '1', 'fields.id.kind' = 'random', 'fields.id.min' = '1', 'fields.id.max' = '200');{code} When we running {code:java} select id, count(*) from datagen_source group by id;{code} Everything will be fine.But if we running {code:java} select id, count(*) from datagen_source group by 1;{code} We will get a SqlValidatorException like this: !sql_exception.png! >From the error message we know that Flink SQL also can reconize that the '1' >index reprent the 'id'.Since MySql\Hive\Spark SQL\etc. all support group by >index, I think Flink also should support this syntax too. > group by index throw SqlValidatorException > -- > > Key: FLINK-24306 > URL: https://issues.apache.org/jira/browse/FLINK-24306 > Project: Flink > Issue Type: Bug > Components: Table SQL / API >Affects Versions: 1.12.2, 1.13.1 >Reporter: zlzhang0122 >Priority: Major > Fix For: 1.15.0 > > Attachments: sql_exception.png > > > We create a table using following DDL: > {code:java} > create table if not exists datagen_source ( > id int, > name string, > sex string, > age int, > birthday string, > proc_time as proctime() > ) with ( > 'connector' = 'datagen', > 'rows-per-second' = '1', > 'fields.id.kind' = 'random', > 'fields.id.min' = '1', > 'fields.id.max' = '200');{code} > When we running > {code:java} > select id, count(*) from datagen_source group by id;{code} > Everything will be fine.But if we running > {code:java} > select id, count(*) from datagen_source group by 1;{code} > We will get a SqlValidatorException like this: > !sql_exception.png! > Since MySql\Hive\Spark SQL\etc. all support group by index, I think Flink > also should support this syntax too. > -- This message was sent by Atlassian Jira (v8.3.4#803005)