-
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
KSQL should support nested AVRO records #638
Comments
@getachew KSQL does not support nested column types yet. You need to flatten your records first. We plan to add support to the nested types. |
Thanks @hjafarpour |
+1 |
For the record, support for nested data structures is something that we are planning to add. It's just not available right now. |
With the title change and labels, is this a good place to track progress on KSQL supporting nesting? @apurvam if not is there anything tracking this? |
@KyleJamesWalker this is the place to track progress on this feature. We are going to standardize on using these issues to gauge interest in features, and that will help with prioritization. As things go, this is pretty high up on the feature requests. |
Just to add for priorities, this is a blocker on my team for using KSQL |
+1. |
+1 |
+1'd already but a blocker for me too. |
+1 |
I need this desperately :) I hope it will be accommodated soon. |
+1 |
2 similar comments
+1 |
+1 |
I'm too facing this issue. Hope this will be fixed soon |
+1 |
|
In order to implement this, you simply have to allow columns to have a delimiter and use that to recursively go through structs, nothing more. |
@Igosuki , Could you please provide more details on your comment? like some examples? Thanks. |
Over the top of my head :
'.' being the delimiter here and the avro schema of records in the tracking stream being :
|
When sequencing the query to match fields you can remove the leftmost member of a column name if it corresponds to a table alias of the from clause so delimiters don't clash |
Has this issue been addressed in the latest release of confluent 4.1? |
@JanardhanVarikuti no, it isn't in the 4.1 release, but it will be in the next release, sometime in July. Hopefully we will get it in a monthly preview release before that though. |
@apurvam Thanks for the update. |
Hello! Is this still on track for a July release with a monthly preview release prior to that? |
Yes, this is still on track @lhayhurst. |
Hi, Is there a developer preview version available to support this? |
This is now available in KSQL 5.0.0. |
It's on the roadmap, but not likely to be tackled any time soon, @dmi3zkm . |
@apurvam any update on this? |
Hello @suresh1784 - I'm not sure which issue you are referring to, but both the issue in the original description and the one referred to by dmi3zkm are both resolved. To see how to create a struct, please see https://docs.ksqldb.io/en/latest/how-to-guides/query-structured-data/#structs |
@agavra , Thanks. I have one other query, can I get the offset and partition of the topic on which I am creating the KSQL table. |
Hello folks,
I get this error while creating a stream for an Avro schema that has a nested type declaration. Not sure if this is an issue on my side but appreciate any input.
Could not fetch the AVRO schema from schema registry. Cannot find correct type for avro type: AddressUSRecord for a schema that looks like
The text was updated successfully, but these errors were encountered: