Hive query generating identifiers for a sequence of row matching a condition

前端 未结 3 1136
执笔经年
执笔经年 2021-01-23 11:54

Let\'s say I have the following hive table as input, let\'s call it connections:

userid  | timestamp   
--------|-------------
1       | 1433258019          


        
3条回答
  •  死守一世寂寞
    2021-01-23 12:06

    Use the following select concat_ws('-',name, city) from employee; the first parameter of concat_ws is separator. name and city are column names for employee table. See that they are of type strings. You can look here for more

提交回复
热议问题