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

SQLParseException: Dynamic nested arrays are not supported #48

Open
amotl opened this issue Sep 16, 2024 · 3 comments
Open

SQLParseException: Dynamic nested arrays are not supported #48

amotl opened this issue Sep 16, 2024 · 3 comments

Comments

@amotl
Copy link
Member

amotl commented Sep 16, 2024

Problem

Nested arrays do not store well into CrateDB, right? Example:

[["150", "55"], null]

Thoughts

Over on this other issue from the other day, you shared valuable ideas how to work around the problem at hand.

Maybe you can come up with a good idea about this problem as well? 🙏

/cc @surister, @matriv, @proddata

@seut
Copy link
Member

seut commented Sep 17, 2024

@amotl

Nested arrays are supported since CrateDB 5.7.0.

@proddata
Copy link
Member

@seut I think @amotl is referring to not being able to add nested arrays to dynamic objects

INSERT INTO t01 (obj) VALUES({arr=[['150', '55'], null]});
-- SQLParseException[Dynamic nested arrays are not supported]

as documented here crate/crate#15545

@amotl
Copy link
Member Author

amotl commented Sep 17, 2024

Most probably yes. Apologies that I did not specify my observations exactly enough within the original post. So, figuring from GH-15545, it is currently possible to store them, but only as top-level columns? I see, thanks.

However, we can't use it when following the data OBJECT(DYNAMIC) catch-all strategy we are employing on different ingest paths within I/O adapters to other databases, where we store the whole ingress record into a single column in CrateDB.

So, I've upvoted GH-15545. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants