Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Phoenix on Hbase existing table - Upper/lowercase on col name

avatar
Rising Star

Hello,

I create a phoenix view on an existing Hbase table wher all hte col family name are lowercas. the to be able to query it I have to put all the time " before and after every column name. It's a little bit annoysing, do you have a workaroung? 🙂

Thanks, Michel

1 ACCEPTED SOLUTION

avatar

As sql dialect keywords are case insensitive , so Double quotes(") just helps parser to avoid converting them back to upper case.

May be you can create a another view over your current view with case insensitive column name. You may check the actual syntax on the site, JFYR

create view view2(col1 integer, col2 integer) as select "col1","col2" from view1;

View solution in original post

1 REPLY 1

avatar

As sql dialect keywords are case insensitive , so Double quotes(") just helps parser to avoid converting them back to upper case.

May be you can create a another view over your current view with case insensitive column name. You may check the actual syntax on the site, JFYR

create view view2(col1 integer, col2 integer) as select "col1","col2" from view1;