Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4100

RQG-on-Hive: Remove EXTRACT UDF from Hive Query Profile

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Impala 2.2.4
    • Fix Version/s: None
    • Component/s: Infrastructure
    • Labels:
      None

      Description

      The RQG-on-Hive creates queries containing the UDF EXTRACT, which is supported in Postgres and Impala, but not in Hive. Hive has the same functionality, but inside a different UDF.

      https://www.postgresql.org/docs/9.1/static/functions-datetime.html
      https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-DateFunctions

      Replacing the EXTRACT UDF with Hive's own implementation inside the RQG is actually quite simple. It only requires overriding a few functions in the query_profile.py class.

        Attachments

          Activity

            People

            • Assignee:
              stakiar_impala_496e Sahil Takiar
              Reporter:
              stakiar_impala_496e Sahil Takiar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: