Let\'s say I have the following hive table as input, let\'s call it connections:
connections
userid | timestamp --------|------------- 1 | 1433258019
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