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

Enforce strict type checks on all operators relying on comparisons

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • HiveServer2
    • None

    Description

      Strict type checks are enforced when hive.strict.checks.type.safety is enabled to prevent unexpected query results in some common cases where implicit type conversions take place.

      At the moment these checks are enforced in most comparison based operators (=,<,>,<=,>=,<>,<=>) but not all. For instance the checks are not active for BETWEEN and IN operators and possibly others. 

      The goal of this issue is to review FunctionRegistry#getCommonClassForComparison and make sure that operators relying on comparisons are covered (at a minimum BETWEEN, IN).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: