I have a table with column name as 'product/price' i want to rename it to product_price while creating a copy of the existing table in sparksql.
create table newtable as select product/price as product_price from existing table
this is giving me error "analysis exception error: cannot resolve 'product'
I also tried doing it as below:
create table newtable as select 'product/price' as product_price from existing table
this does change the column name but all the values in it are also changed to product_price.