Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ class SparkThriftServerProtocolVersionsSuite extends HiveThriftJdbcTest {
}
}

// TODO: enable this test case after port HIVE-10646
ignore(s"$version get void") {
test(s"$version get void") {
testExecuteStatementWithProtocolVersion(version, "SELECT null") { rs =>
assert(rs.next())
assert(rs.getString(1) === null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ public static TColumnValue toTColumnValue(Type type, Object value) {
case UNION_TYPE:
case USER_DEFINED_TYPE:
return stringValue((String)value);
case NULL_TYPE:
return stringValue((String)value);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hive 2.3 has fixed this issue:

case NULL_TYPE:
return stringValue((String)value);

default:
return null;
}
Expand Down