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

CONCAT in sub-query isn't working

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Component/s: CLI, Hive
    • Labels:
      None
    • Environment:

      cdh5.12.1

      Description

      • Normal Concat keywords works.
        select concat("('", concat_ws("|", collect_set(value) ), "')") from some_table;
        
      • rlike is also working fine :
        select a.values from some_table a where a.value_list rlike ('1234|234.2') 
        
      • when concat is used in sub-query :
        select a.values from some_table a where a.values rlike( select concat("('", concat_ws("|", collect_set(value) ), "')") from some_table );
        
      • A error is thrown :
        FAILED: ParseException line 2:2 cannot recognize input near 'select' 'concat' '(' in expression specification
        

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gatripat Ganesh Tripathi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: