Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-19811

sparksql 2.1 can not prune hive partition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.1.0
    • None
    • SQL
    • None

    Description

      When sparksql2.1 execute sql, it has error:
      java.lang.RuntimeException: Expected only partition pruning predicates: (isnotnull(DAY_ID#216) && (DAY_ID#216 = 20170212)) and the sql sentence is
      select PROD_INST_ID from CRM_DB.ITG_PROD_INST WHERE DAY_ID='20170212' AND PROV_ID ='842' limit 10; where DAY_ID and PROVE_ID is partition in hive.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wangchao2017 sydt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: