Uploaded image for project: 'Apache Lens'
  1. Apache Lens
  2. LENS-1476

Order By clause is not rewritten correctly when column is wrapped with function

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cube
    • Labels:
      None

      Description

      Order by clauses like to_date(datecol) is not not rewritten properly in the final union query.

      1. LENS-1476.patch
        1 kB
        Sushil Mohanty

        Activity

        Hide
        sushilmohanty Sushil Mohanty added a comment -

        Minor change, attaching patch directly.

        Show
        sushilmohanty Sushil Mohanty added a comment - Minor change, attaching patch directly.
        Hide
        puneet884 Puneet Gupta added a comment -

        +1 for patch

        Show
        puneet884 Puneet Gupta added a comment - +1 for patch
        Hide
        hadoopqa Hadoop QA added a comment -

        Applied patch: LENS-1476.patch and ran command: mvn clean install -fae. Result: Failure. Build Job: https://builds.apache.org/job/PreCommit-Lens-Build/1438/

        Show
        hadoopqa Hadoop QA added a comment - Applied patch: LENS-1476.patch and ran command: mvn clean install -fae. Result: Failure. Build Job: https://builds.apache.org/job/PreCommit-Lens-Build/1438/
        Hide
        hadoopqa Hadoop QA added a comment -

        Applied patch: LENS-1476.patch and ran command: mvn clean install -fae. Result: Failure. Build Job: https://builds.apache.org/job/PreCommit-Lens-Build/1439/

        Show
        hadoopqa Hadoop QA added a comment - Applied patch: LENS-1476.patch and ran command: mvn clean install -fae. Result: Failure. Build Job: https://builds.apache.org/job/PreCommit-Lens-Build/1439/
        Hide
        sushilmohanty Sushil Mohanty added a comment -

        Committed myself.

        Show
        sushilmohanty Sushil Mohanty added a comment - Committed myself.
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Jenkins build Lens-Commit #1443 (See https://builds.apache.org/job/Lens-Commit/1443/)
        LENS-1476 : Order By clause is not rewritten correctly when column is (sushilmohanty: rev 9a40b6455b50fe0e0930d1542a1ec9745025ccc7)

        • (edit) lens-cube/src/main/java/org/apache/lens/cube/parse/UnionQueryWriter.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Jenkins build Lens-Commit #1443 (See https://builds.apache.org/job/Lens-Commit/1443/ ) LENS-1476 : Order By clause is not rewritten correctly when column is (sushilmohanty: rev 9a40b6455b50fe0e0930d1542a1ec9745025ccc7) (edit) lens-cube/src/main/java/org/apache/lens/cube/parse/UnionQueryWriter.java

          People

          • Assignee:
            sushilmohanty Sushil Mohanty
            Reporter:
            sushilmohanty Sushil Mohanty
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development