-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Support accessing JSON fields with periods (.
dot notation)
#1033
Comments
Keep in mind: How would you differentiate queries for "foo": {
"bar": "value"
} ? Related - #638 |
@Cricket007 That is a very good point! I'm not sure how we would resolve that. Maybe something like: |
Have you tried escaping the period? e.g.
|
.
dot notation)
Apologies for the delayed response @big-andy-coates. When I run that, I get this error:
I should add that I am using the ksql-cli docker image: confluentinc/ksql-cli:0.5. I have also found a workaround for this problem by ensuring JSON fields don't have periods. But, still thanks for the help. |
@Cricket007: |
user |
In the KSQL cli, when I create streams on json data where fields contain periods, I am not able to perform KSQL queries on the fields with periods.
Here is an example
As you can see above, I can import streams where fields have periods but I cannot select data from those fields with periods without getting the
SelectValueMapper
code generation error.Furthermore, when I create the Stream with foo.bar surrounded by single quotes I get a syntax error. When I use double quotes, the stream "compiles" but I get the same
Code generation failed for SelectValueMapper
error.Thank you for your time!
The text was updated successfully, but these errors were encountered: