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

ASF GitHub Bot commented on FLINK-10172:
----------------------------------------

walterddr opened a new pull request #6585: [FLINK-10172][table]re-adding asc & 
desc suffix expression to expressionParser
URL: https://github.com/apache/flink/pull/6585
 
 
   ## What is the purpose of the change
   
   Fix Java expressionParser not correctly resolving `asc` and `desc` keyword.
   
   ## Brief change log
   
     - *Adding back `suffixAsc` and `suffixDesc`*
   
   ## Verifying this change
   
     - *Added table string expression test*
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (no)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): (no)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
     - The S3 file system connector: (no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (no)
     - If yes, how is the feature documented? (n/a)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Inconsistentcy in ExpressionParser and ExpressionDsl for order by asc/desc
> --------------------------------------------------------------------------
>
>                 Key: FLINK-10172
>                 URL: https://issues.apache.org/jira/browse/FLINK-10172
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API & SQL
>    Affects Versions: 1.6.0
>            Reporter: Rong Rong
>            Assignee: Rong Rong
>            Priority: Major
>              Labels: pull-request-available
>
> The following expression throws an exception in parsing {{"id.asc"}} term.
> {code:java}
> Table allOrders = orderTable
>         .select("id,order_date,amount,customer_id")
>         .orderBy("id.asc");
> {code}
> while it is correctly parsed for Scala:
> {code:scala}
> val allOrders:Table = orderTable
>         .select('id, 'order_date, 'amount, 'customer_id)
>         .orderBy('id.asc)
> {code}
> Anticipated some inconsistency between ExpressionParser and ExpressionDsl



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to