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

Flink Jira Bot commented on FLINK-17409:
----------------------------------------

This issue and all of its Sub-Tasks have not been updated for 180 days. So, it 
has been labeled "stale-minor". If you are still affected by this bug or are 
still interested in this issue, please give an update and remove the label. In 
7 days the issue will be closed automatically.

> SqlCreateView's SqlParserPos return wrong value
> -----------------------------------------------
>
>                 Key: FLINK-17409
>                 URL: https://issues.apache.org/jira/browse/FLINK-17409
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>    Affects Versions: 1.10.0
>            Reporter: Jason Zhang
>            Priority: Minor
>              Labels: stale-minor
>
> i add a test method in 
> FlinkSqlParserImplTest,sqlNode.getParserPosition().getEndColumnNum() should 
> return length of sql.
> {code:java}
> @Test
> public void testCreateViewSqlNodePosition() throws SqlParseException{
>  String sql = "CREATE VIEW v1 AS SELECT 1";
>  SqlNode sqlNode = getSqlParser(sql).parseQuery();
>  System.out.println(sqlNode.getParserPosition().getLineNum());      // 1
>  System.out.println(sqlNode.getParserPosition().getEndLineNum());   // 1
>  System.out.println(sqlNode.getParserPosition().getColumnNum());    // 1
>  System.out.println(sqlNode.getParserPosition().getEndColumnNum()); // 6 wrong
> }
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to