deniskuzZ commented on code in PR #6145:
URL: https://github.com/apache/hive/pull/6145#discussion_r2452050490
##########
streaming/src/test/org/apache/hive/streaming/TestStreaming.java:
##########
@@ -1826,31 +1754,29 @@ public void testTransactionBatchAbort() throws
Exception {
connection.close();
checkNothingWritten(partLoc);
-
}
@Test(expected = ClassCastException.class)
public void testFileSystemError() throws Exception {
// Bad file system object, ClassCastException should occur during record
writer init
- conf.set("fs.raw.impl", Object.class.getName());
+ conf.set("fs.raw.impl", TestStreaming.class.getName());
StrictDelimitedInputWriter writer = StrictDelimitedInputWriter.newBuilder()
- .withFieldDelimiter(',')
- .build();
+ .withFieldDelimiter(',')
+ .build();
HiveStreamingConnection connection = HiveStreamingConnection.newBuilder()
- .withDatabase(dbName)
- .withTable(tblName)
- .withStaticPartitionValues(partitionVals)
- .withAgentInfo("UT_" + Thread.currentThread().getName())
- .withRecordWriter(writer)
- .withHiveConf(conf)
- .connect();
+ .withDatabase(dbName)
+ .withTable(tblName)
+ .withStaticPartitionValues(partitionVals)
+ .withAgentInfo("UT_" + Thread.currentThread().getName())
+ .withRecordWriter(writer)
+ .withHiveConf(conf)
+ .connect();
Review Comment:
yes, to align with the rest of tests
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]