GitHub user liancheng opened a pull request:
https://github.com/apache/spark/pull/1920
[SPARK-3004][SQL] Added null checking when retrieving row set
JIRA issue: [SPARK-3004](https://issues.apache.org/jira/browse/SPARK-3004)
HiveThriftServer2 throws exception when the result set contains `NULL`.
Should check `isNullAt` in `SparkSQLOperationManager.getNextRowSet`.
Note that simply using `row.addColumnValue(null)` doesn't work, since Hive
set the column type of a null `ColumnValue` to String by default.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/liancheng/spark spark-3004
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/1920.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 #1920
----
commit 221772266928b752594aa99aa1d9656c3c7892b5
Author: Cheng Lian <[email protected]>
Date: 2014-08-13T07:47:11Z
Fixed SPARK-3004: added null checking when retrieving row set
commit 1b1db1ca768a826224567a6f249ba389c345507f
Author: Cheng Lian <[email protected]>
Date: 2014-08-13T09:13:05Z
Adding NULL column values in the Hive way
----
---
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]