I have 2 columns of type int
and I want to make a concat to two columns in presto syntax. it is possible?
for example:
id:
- 345
- 997
age:
- 23
- 55
new_col:
-
34523
-
99755
I was trying to use the array function but it is not working :/
thanks to everyone!
2
Answers
As presto can not convert automatically
You concatenate strings.
You calculate with integers.
So, multiply one column by 100, and add the other. And the result is another integer, not a string.
Data Types matter. And integers are way faster than strings.