Impala concatenate string

0 votes
Hi. Is there a way to concatenate two strings using Impala query? I have to strings "cluster id" and "cluster name". How to concatenate them?
Jun 6, 2019 in Big Data Hadoop by Keshav
5,577 views

1 answer to this question.

0 votes

Yes, you can concatenate two strings using Impala. Refer to the below query:

select concat('cluster id' , 'cluster name');
+---------------------------------------+
| concat('cluster id ', 'cluster name') |
+---------------------------------------+
| cluster id cluster name               |
+---------------------------------------+
answered Jun 6, 2019 by Raghu
strings yes it will do. But I cannot concat two columns of same data types. Its returning null.

select concat(cola,colb) from tab; --> Null

Pls educate
Hi@Gautham,

It should return your output. Check your data type once. If possible share your dataset and command as well.

Related Questions In Big Data Hadoop

0 votes
1 answer

How Impala is fast compared to Hive in terms of query response?

Impala provides faster response as it uses MPP(massively ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
899 views
0 votes
1 answer

What are the security guidelines for Impala?

Security Guidelines for Impala: The following are the ...READ MORE

answered Aug 6, 2018 in Big Data Hadoop by kurt_cobain
• 9,390 points
153 views
0 votes
1 answer

How to convert a string to timestamp with milliseconds in Hive?

 concatenation of substrings using the following code: select ...READ MORE

answered Oct 31, 2018 in Big Data Hadoop by Neha
• 6,300 points
13,096 views
0 votes
1 answer

Hadoop Hive: How to split string in Hive?

You can use the split function along ...READ MORE

answered Nov 6, 2018 in Big Data Hadoop by Omkar
• 69,150 points
8,953 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
7,401 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
1,207 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
55,063 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,390 points
2,790 views
0 votes
1 answer

Impala get current time

You can get the current time using ...READ MORE

answered Jun 6, 2019 in Big Data Hadoop by Raman
142 views
0 votes
1 answer

Impala: Add months to current time

You can add the months using the add_months method ...READ MORE

answered Jun 6, 2019 in Big Data Hadoop by John
478 views