-
Notifications
You must be signed in to change notification settings - Fork 49
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
Rethink how to store original data for Crate backend #344
Labels
Comments
Here's how to reproduce the issue. Start QL with the
|
Here are another couple of things to keep in mind:
|
maybe a good idea is to make |
@c0c0n3 value is now a string in crate (if I am not wrong) |
@chicco785 yep. that's correct, closing this issue... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem
Turning on saving of original data when using the Crate backend results in an insert failure if the data contains nested arrays. Both the initial and the recovery insert fail because the type of the original data column is
object
and Crate does not support nested arrays in JSON docs---see #343 about it. Notice this only affects the Crate backend, not Timescale.What to do about it
See if there's any easy workaround that will let us keep the
object
type for the original data column. If not consider switching back to thetext
type as we did initially, see conversation over here. Another option that springs to mind is to use a text column in all cases (= safe) but add a full text index to the column so we can query the content. Not as nice as querying the JSON but maybe a viable option?The text was updated successfully, but these errors were encountered: