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

CONCAT in sub-query isn't working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.0
    • None
    • CLI, Hive
    • None
    • 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

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

            Dates

              Created:
              Updated: