-
Notifications
You must be signed in to change notification settings - Fork 100
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
Struct array elements are being serialized before writing to Array column #724
Comments
Was digging into the codebase. It looks like this RecordService#getMapFromJsonNodeForStreamingIngest() does not handle objects as array elements and just stringifies it. Is this intentional? What if you recursively build a |
This is indeed not clear why to stringify array elements. SDK would indeed treat it as a string. @sfc-gh-zefan is it expected this way for Snowpipe? |
Looks like this is being addressed in #730. |
Closing as this is fixed in #730. |
I have a field in avro schema that is an Array of Struct type. Table has an existing column that's of Array type. I'm seeing array elements being serialized (Seeing array of stringified JSON in the SF column). Since the column is Array, it can take an array of object (struct/variant). Is there any way to disable this serialization and treat the elements as a variant instead?
Here's a quick comparison:
Expected value in column:
Actual:
The text was updated successfully, but these errors were encountered: