ashutosh-bapat commented on a change in pull request #608: Hive21598 : CTAS on
ACID table during incremental does not replicated data.
URL: https://github.com/apache/hive/pull/608#discussion_r280289959
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/CreateTableOperation.java
##########
@@ -140,6 +145,26 @@ private void createTableNonReplaceMode(Table tbl) throws
HiveException {
Table createdTable = context.getDb().getTable(tbl.getDbName(),
tbl.getTableName());
DataContainer dc = new DataContainer(createdTable.getTTable());
context.getQueryState().getLineageState().setLineage(createdTable.getPath(),
dc, createdTable.getCols());
+
+ // We did not create the table when moving the data files for a
non-partitioned table and
Review comment:
Done. I think it's better to refer to getFileSinkPlan() instead of
explaining everything that function does here.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]