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

Fixed a Bug and made changes for PreparedQuery

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: api, cube, server
    • Labels:
      None

      Description

      Fixed following Issues in Lens for Azure Migrations

      1. Bug in Lens-Metastore for single fact granularity -- https://issues.apache.org/jira/browse/LENS-1544. Explaination: This had a special case for handling facts with one-update-period and multiple-update-periods. The case which handled one-update-period had a bug while generating the name of the hive table whole format is update_period-fact_name, the update_period was coming as null.
      2. JDBCDriver.java was invoking JDBC Driver while validating the prepared query, I don't need this functionality so blocking this via already existing config parameter JDBC_VALIDATE_THROUGH_PREPARE.
        2a) Old Flow:
        esitmate()
        --- | --> validate
        -----| --> JDBC_VALIDATE_THROUGH_PREPARE condition to prepare through if condition
        -----|--> prepareInternal()
        ----------------|--> rewrite -- Rewritting take place
        

        2b) New Flow:

        esitmate()
        ---| --> rewrite -- Rewritting take place
        ---| --> validate
        -----| --> JDBC_VALIDATE_THROUGH_PREPARE condition to prepare through if condition
        -----|--> prepareInternal()
        

        Attachments

          Activity

            People

            • Assignee:
              amareshwari Amareshwari Sriramadasu
              Reporter:
              rajashekhar.c@inmobi.com Rajashekhar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3.5h
                3.5h