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

Support auto-casting non-boolean where condition into boolean

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Hive should support

      select 1 where 1
      

      currently it throws an execption (at least with mr)...complaining about Integer / Boolean casting difficulties.

      Current behaviour is a bit inconsistent; because using tez / vectorization this is supported.

      related tickets:
      HIVE-15089
      HIVE-1478
      HIVE-13659

        Attachments

        1. HIVE-15408.01.patch
          17 kB
          Zoltan Haindrich
        2. HIVE-15408.02.patch
          22 kB
          Zoltan Haindrich
        3. HIVE-15408.03.patch
          25 kB
          Zoltan Haindrich
        4. HIVE-15408.04.patch
          47 kB
          Zoltan Haindrich
        5. HIVE-15408.05.patch
          45 kB
          Zoltan Haindrich

          Issue Links

            Activity

              People

              • Assignee:
                kgyrtkirk Zoltan Haindrich
                Reporter:
                kgyrtkirk Zoltan Haindrich
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: