-
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
Unexpected token "@" #264
Comments
@xmlking The columns names cannot start with '@'. Can you change the field names in your JSON so they won't start with '@'? I would suggest '_timestamp' and '_version'. |
I can certainly change it. KSQL is amazing component in Kafka ecosystem . Thanks. As logstash by default use this JSON format, and it is valid JSON, wonder if we can remove this limitation in KSQL. |
@xmlking Thanks for reporting this. I agree that it would be great to support |
Fwiw this is the first thing that I ran into when using KSQL to do ETL on Elasticsearch-destined data recently... (it's broader than logstash, which I don't use... I do understand the quandary with deviating from SQL. My 2c would be that "loosening" the syntax (e.g. making things that aren't valid SQL be valid kSQL) is ok. But your call of course. |
Thanks for the feedback @henridf -- we're still thinking about this, please stay tuned. Have you been able to come up with a workaround in the meantime? |
I since ran into some other (more significant) issues with ksql and as a result have put this aside for the time being. So, I haven't needed to find a workaround for this. I'll file the other issues as soon as I have time to do a simple repro. In any case, what little I was able to do was great, and I look forward to seeing this project grow. Thanks! |
Thanks for the update @henridf. Appreciate the kind words! And please keep the feedback coming! :-) |
@henridf - the clickstream demo uses a dynamic-template to configure the timestamp fields, it should provide you with a workaround, then you can use a _timestamp field as the demo does. Take a look at https://github.com/confluentinc/ksql/blob/0.1.x/ksql-clickstream-demo/demo/elastic-dynamic-template.sh |
Fixed by #581 |
Error:
Line 1, Column 17: Unexpected token "@"
unfortunately my JSON data looks like this
The text was updated successfully, but these errors were encountered: