1

I need to extract a column[Employee] in DB as "Employee(Emp)" in Hive. Is that possible we can handle in hive.

Select Employee as Employee(Emp) from Emp_Table

But it seems doesnt work as expected

1 Answers1

1

use backtick (``) to enclose the alias.

Select 'aa' as `Employee(Emp)` 

enter image description here

Koushik Roy
  • 6,868
  • 2
  • 12
  • 33