deniskuzZ commented on code in PR #6794:
URL: https://github.com/apache/hive/pull/6794#discussion_r4217581163
##########
ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java:
##########
@@ -1487,11 +1496,22 @@ private String getDynPartDirectory(List<String> row,
List<String> dpColNames) {
return FileUtils.makePartName(dpColNames, row);
}
+ private void recordAffectedRows(RecordWriter writer) {
+ if (writer instanceof AffectedRowsProvidingRecordWriter) {
+ affectedRowCount += ((AffectedRowsProvidingRecordWriter)
writer).getAffectedRows();
Review Comment:
no need for cast, just add alias inside if next to instanceof
--
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]