Hi All,
I am trying to automatise the testing of the data in Impala. Is there a way to check, if two columns from the different tables have the same data type? Currently we are doing this check manually, by
describe formatted a;
describe formatted b;
but I would like to see result in the way:
select
case
when a.type = b.type
then "TRUE"
else "FALSE"
end
from
(describe formatted x.column1 as type) a,
(describe formatted y.column1 as type) b;
Can you please advise, if there is a way to implement second example?
Thanks,
Anastasia