- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
create view for complex struct
- Labels:
-
Apache Impala
Created on 06-08-2017 09:36 AM - edited 09-16-2022 04:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a query like
select equipment.`location`.name from a
this works (in HUE), when i try to create a view, i have this error
Invalid column/field name: equipment.location.name
equipment is a complex object under a, and location is complex under equipment, how can i create the view?
Thanks
Shannon
Created 06-09-2017 07:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to give your "equipment.location.name" an alias that is a valid column name. For example,
create view ... select equipment.location.name as name ....
Created 06-09-2017 07:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to give your "equipment.location.name" an alias that is a valid column name. For example,
create view ... select equipment.location.name as name ....
Created 06-12-2017 06:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
