giftig opened a new pull request, #25746:
URL: https://github.com/apache/superset/pull/25746
### SUMMARY
Initial work to support a rewrite of the PRESTO_EXPAND_DATA feature for
trino. This allows parsing complex structural types described by trino, e.g.
row(foo varchar, bar int)
or arbitrarily deeply nested types like
row(foo row(bar array(int)))
This parses them into a structural format we can then inspect in order to
discover all fields and structures available within them, which is needed in
order to expand the results of a SELECT * query out into additional rows and
columns, or to help autocomplete dotted.paths available.
### TESTING INSTRUCTIONS
<!--- Required! What steps can be taken to manually verify the changes? -->
Unit tests. Currently there's no impact on implementation, as the next steps
will be using this type parsing logic to write `expand_data` logic for the
`TrinoEngineSpec`.
### ADDITIONAL INFORMATION
<!--- Check any relevant boxes with "x" -->
<!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
- [x] Has associated ~issue~ discussion:
https://github.com/apache/superset/discussions/25713
- [ ] Required feature flags:
- [ ] Changes UI
- [ ] Includes DB Migration (follow approval process in
[SIP-59](https://github.com/apache/superset/issues/13351))
- [ ] Migration is atomic, supports rollback & is backwards-compatible
- [ ] Confirm DB migration upgrade and downgrade tested
- [ ] Runtime estimates and downtime expectations provided
- [x] Introduces new feature or API
- [ ] Removes existing feature or API
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]