GitHub user seyfe opened a pull request:
https://github.com/apache/spark/pull/15345
[SPARK-17773] [Input/Output] [branch-2.0] Add VoidObjectInspector
This is the PR for branch2.0: PR https://github.com/apache/spark/pull/15337
Added VoidObjectInspector to the list of PrimitiveObjectInspectors
(Please explain how this patch was tested. E.g. unit tests, integration
tests, manual tests)
Executing following query was failing.
select SOME_UDAF*(a.arr)
from (
select Array(null) as arr from dim_one_row
) a
After the fix, I am getting the correct output:
res0: Array[org.apache.spark.sql.Row] = Array([null])
Author: Ergin Seyfe <[email protected]>
Closes #15337 from seyfe/add_void_object_inspector.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/seyfe/spark add_void_object_inspector_2.0
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/15345.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #15345
----
commit 68c59f14a51d589c93a20778a89fd45ab65d52fb
Author: Ergin Seyfe <[email protected]>
Date: 2016-10-04T06:28:39Z
[SPARK-17773] Input/Output] Add VoidObjectInspector
Added VoidObjectInspector to the list of PrimitiveObjectInspectors
(Please explain how this patch was tested. E.g. unit tests, integration
tests, manual tests)
Executing following query was failing.
select SOME_UDAF*(a.arr)
from (
select Array(null) as arr from dim_one_row
) a
After the fix, I am getting the correct output:
res0: Array[org.apache.spark.sql.Row] = Array([null])
Author: Ergin Seyfe <[email protected]>
Closes #15337 from seyfe/add_void_object_inspector.
----
---
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]