queryparser
queryparser copied to clipboard
Column usage doesn't include hive struct accessors
For tables where the majority of 'columns' are abstracted under a top-level column, e.g. body
or msg
, we don't surface the struct accessor as the column name, rendering analysis of these queries unusable.
Ideally, if we had a msg.name, msg.attrs.foo, msg.attrs.bar
struct, we'd see the leaf struct names as the column name, i.e. msg.name
, msg.attrs.foo
, etc. Instead, we currently see msg
for all of them.
This is already captured in parsing, just needs to add to the usage analysis.