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
13,890 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
2,221 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,350 points
856 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
19,668 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,220 points
12,022 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
11,035 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
2,542 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
108,863 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,350 points
4,617 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
1,453 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
1,972 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP