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

Failure to assign dictionary predicates should not result in query failure - testing needed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Impala 2.9.0, Impala 2.10.0, Impala 2.11.0
    • None
    • Frontend
    • None
    • ghx-label-8

    Description

      Assigning dictionary predicates to Parquet scans may involve evaluation of expressions in the BE which could fail for various reasons. Such failures should lead to non-assignment of dictionary predicates but not to query failure.

      See HdfsScanNode:

      private void addDictionaryFilter(...) {
      ...
          try {
            if (analyzer.isTrueWithNullSlots(conjunct)) return;
          } catch (InternalException e) { <--- does not handle Exception which will cause query to fail
            // Expr evaluation failed in the backend. Skip this conjunct since we cannot
            // determine whether it is safe to apply it against a dictionary.
            LOG.warn("Skipping dictionary filter because backend evaluation failed: "
                + conjunct.toSql(), e);
            return;
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alex.behm Alexander Behm
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: