Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24600

Strict type checks are not enforced on join conditions when CBO disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Query Processor
    • None

    Description

      When hive.strict.checks.type.safety property is set to true, queries with unsafe comparisons should fail with an appropriate exception no matter if CBO is enabled or not (hive.cbo.enable).

      At the moment the safety checks are not applied in join conditions present in the ON clause when CBO is disabled.

      For example, both queries below should fail.

      set hive.strict.checks.type.safety=true;
      set hive.cbo.enable=false;
      SELECT * FROM biginttbl INNER JOIN strtbl ON bigintcol=strcol;
      SELECT * FROM biginttbl INNER JOIN strtbl WHERE bigintcol=strcol;
      

      At the moment, the second query (with WHERE clause) will fail but not the first one (with ON clause).

      Attachments

        Activity

          People

            zabetak Stamatis Zampetakis
            zabetak Stamatis Zampetakis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: