comphead commented on code in PR #1788: URL: https://github.com/apache/datafusion-comet/pull/1788#discussion_r2110170636
########## spark/src/test/scala/org/apache/comet/exec/CometNativeReaderSuite.scala: ########## @@ -303,4 +303,28 @@ class CometNativeReaderSuite extends CometTestBase with AdaptiveSparkPlanHelper |""".stripMargin, "select c0[0].a, c0[0].a from tbl") } + + test("native reader - select nested field from a complex map key using map_keys") { + testSingleLineQuery( + """ + | select map(str0, str0) c0 from + | ( + | select named_struct('a', cast(1 as long), 'b', cast(2 as long), 'c', cast(3 as long)) str0 union all + | select named_struct('a', cast(3 as long), 'b', cast(4 as long), 'c', cast(5 as long)) str0 + | ) + |""".stripMargin, + "select map_keys(c0).b from tbl") + } + +// test("native reader - select nested field from a complex map key using map_values") { Review Comment: done -- 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