Github user bogdanrdc commented on a diff in the pull request:
https://github.com/apache/spark/pull/16608#discussion_r96300006
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/generators.scala
---
@@ -233,11 +244,11 @@ abstract class ExplodeBase extends UnaryExpression
with CollectionGenerator with
if (position) {
new StructType()
.add("pos", IntegerType, nullable = false)
- .add("key", kt, nullable = false)
+ .add("key", kt, nullable = true)
--- End diff --
I will see if I can fix it from Generate instead.
If it's false then outer_explode with empty map fails with this exception:
java.util.concurrent.ExecutionException: java.lang.Exception: failed to
compile: org.codehaus.commons.compiler.CompileException: File 'generated.java',
Line 42, Column 89: A method named "isNullAt" is not declared in any enclosing
class nor any supertype, nor through a static import
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]