Description
Create a table like below:
CREATE TABLE hive_bug(col1 string);
Run below query in Hive:
from hive_bug select transform(col1) using '/bin/cat' as (AAAA string);
The result would be:
0: jdbc:hive2://localhost:10000> from hive_bug select transform(col1) using '/bin/cat' as (AAAA string); ...... INFO : OK +-------+--+ | AAAA | +-------+--+ +-------+--+
The output column name is AAAA instead of the lowercase aaaa.