Description
Is your feature request related to a problem?
Opensearch and SQL plugin use dot notation to delimit fields and subfields for nested objects. BI tools (Power BI and Tableau Desktop) don't use DESCRIBE
request to get list of columns1.
Example
Part of ecommerce index mapping (sample data set from Dashboards).
{
"mappings" : {
"properties" : {
"geoip" : {
"properties" : {
"city_name" : {
"type" : "keyword"
},
"continent_name" : {
"type" : "keyword"
},
"country_iso_code" : {
"type" : "keyword"
},
"location" : {
"type" : "geo_point"
},
"region_name" : {
"type" : "keyword"
}
}
}
}
}
}
DESCRIBE
response:
Table | Column | Other info |
---|---|---|
ecommerce | geoip | ... |
ecommerce | geoip.city_name | ... |
ecommerce | geoip.continent_name | ... |
ecommerce | geoip.country_iso_code | ... |
ecommerce | geoip.location | ... |
ecommerce | geoip.region_name | ... |
SELECT *
response:
geoip |
---|
...data... |
(there are no geoip.something
columns)
What solution would you like?
Add new SQL plugin setting with boolean value. By default it is deactivated (unset). Once set, it will enforce expanding all complex objects in select *
query.
What alternatives have you considered?
JDBC and ODBC drivers could be updated by having new connection string parameter. Once set, driver will send new request parameter
Do you have any additional context?
Add any other context or screenshots about the feature request here.
Footnotes
-
PBI runs
select * from ... limit 0
, Tableau runsselect * from ... where 1 = 0
. ↩