parthchandra commented on issue #1843: URL: https://github.com/apache/datafusion-comet/issues/1843#issuecomment-2947362362
Why would the expected result be `[null], [null], [null]` ? This means that all the structs are null but that is not the actual data. Only in the third row, is the struct actually null. The data is equivalent to - ``` Row 1 _1 : _1 : 1 _2 : "a" _3 is missing (so is in fact null) _4 is missing (therefore also null) Row 2 _1 : _1 : 2 _2: null _3 is missing _4 is missing Row 3 null ``` So for Row 1 one would expect the value of the `struct _1` to be not null for row's 1 and 2. The fields _1._3 and _1._4 are not in the data (and the type for _1._4 does not match) so the values of those fields are in fact null. Looks like DF is correct. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org