- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Phoenix Views with different column names compared to Hbase / Phoenix tables
- Labels:
-
Apache HBase
-
Apache Phoenix
Created ‎03-27-2017 02:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
My Phoenix table( "t1", column family "f1") has the following columns,
pk - Primary key
first_name varchar
last_name varchar
I want to create a view ("v1") like following which points to the above table.
pk - Primary key
fn varchar
ln varchar
I like to have the column names shorter when i create the views but not in the original table.
When i query "select * from v1" , i should get the table "t1" data.
Is there a way to achieve this in Phoenix ?
Created ‎03-27-2017 06:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, view has the same column names.
Created ‎03-27-2017 06:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, view has the same column names.
Created ‎03-27-2017 10:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Sergey SoldatovThanks for the response. Do you aware if there is any apache JIRA open to include this feature in future releases.
Created ‎03-27-2017 10:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Once we support custom select (PHOENIX-1505, PHOENIX-1506) it will be possible to do that (like ... select column_1 as c1, ... ). Honestly speaking I can't say when it will be done.
