Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MariaDB-connector] add support to query dynamic columns #21833

Open
rponsaerts opened this issue May 7, 2024 · 2 comments
Open

[MariaDB-connector] add support to query dynamic columns #21833

rponsaerts opened this issue May 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@rponsaerts
Copy link

rponsaerts commented May 7, 2024

Hi,

Would it be possible to add support in the MariaDB connector to query dynamic columns in MariaDB?

https://mariadb.com/kb/en/dynamic-columns/

Currently, I don't see an easy way on how to do this.

best,

r

@findepi findepi added the enhancement New feature or request label May 10, 2024
@findepi
Copy link
Member

findepi commented May 10, 2024

At first sight, accessing them as JSON (COLUMN_JSON(dynamic_cols)) looks most appropriate.

@rponsaerts
Copy link
Author

There is a workaround, likely less powerful than directly querying MariaDB dynamic columns (VARBINARY in Trino) from Trino....

It is sometimes possible to create a useful MariaDB VIEW from the table that contains the dynamic columns and thereby converting the content in the dynamic columns to JSON or extracting JSON content from the dynamic columns. Using Trino JSON functions, further querying can be done on this JSON content within the MariaDB VIEW.

So, would be nice to put the enhancement on the MariaDB-connector development roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants