Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10172

Inconsistency in ExpressionParser and ExpressionDsl for order by asc/desc

    XMLWordPrintableJSON

Details

    Description

      The following expression throws an exception in parsing "id.asc" term.

      Table allOrders = orderTable
              .select("id,order_date,amount,customer_id")
              .orderBy("id.asc");
      

      while it is correctly parsed for Scala:

      val allOrders:Table = orderTable
              .select('id, 'order_date, 'amount, 'customer_id)
              .orderBy('id.asc)
      

      Anticipated some inconsistency between ExpressionParser and ExpressionDsl

      Attachments

        Issue Links

          Activity

            People

              rongr Rong Rong
              rongr Rong Rong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: