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

Analysis exception when inline view has case statement with IN predicates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.2
    • Impala 2.3.0
    • None

    Description

      The following query throws an analysis exception:

      select * from (select * from functional.alltypestiny case when int_col in (1,2) then 1 else 2 end as b) t where b > 0;
      
      Error: IllegalStateException: Failed analysis after expr substitution
      Cause by: AnalysisException: IN and/or EXISTS subquery predicates are not supported in binary predicates: CASE WHEN int_col in (1,2) THEN 1 ELSE 2 END <10
      

      Attachments

        Issue Links

          Activity

            People

              dtsirogiannis Dimitris Tsirogiannis
              dtsirogiannis Dimitris Tsirogiannis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: