Skip to content

Commit 4c838b2

Browse files
committed
Port HIVE-10646
1 parent a59fdc4 commit 4c838b2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/SparkThriftServerProtocolVersionsSuite.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ class SparkThriftServerProtocolVersionsSuite extends HiveThriftJdbcTest {
245245
}
246246
}
247247

248-
// TODO: enable this test case after port HIVE-10646
249-
ignore(s"$version get void") {
248+
test(s"$version get void") {
250249
testExecuteStatementWithProtocolVersion(version, "SELECT null") { rs =>
251250
assert(rs.next())
252251
assert(rs.getString(1) === null)

sql/hive-thriftserver/v1.2.1/src/main/java/org/apache/hive/service/cli/ColumnValue.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ public static TColumnValue toTColumnValue(Type type, Object value) {
202202
case UNION_TYPE:
203203
case USER_DEFINED_TYPE:
204204
return stringValue((String)value);
205+
case NULL_TYPE:
206+
return stringValue((String)value);
205207
default:
206208
return null;
207209
}

0 commit comments

Comments
 (0)