maheshk114 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_r279627575
##########
File path:
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcidTablesBase.java
##########
@@ -203,18 +203,17 @@ void verifyLoadExecution(String replicatedDbName, String
lastReplId, boolean inc
void prepareIncAcidData(String dbName) throws Throwable {
primary.run("use " + dbName)
- .run("create table t6 (str string) stored as orc tblproperties " +
- "(\"transactional\"=\"true\")")
- .run("insert into t6 values ('aaa'), ('bbb')")
+ .run("create table t6 stored as orc tblproperties
(\"transactional\"=\"true\")" +
+ " as select * from t1")
.run("alter table t2 add columns (placetype string)")
.run("update t2 set placetype = 'city'");
acidTableNames.add("t6");
}
private void verifyIncAcidLoad(String dbName) throws Throwable {
replica.run("use " + dbName)
- .run("select str from t6 order by str")
- .verifyResults(new String[]{"aaa", "bbb"})
+ .run("select id from t6 order by id")
+ .verifyResults(new String[]{"1", "2"})
Review comment:
change insertRecordsIntoDB method in ReplicationTestUtils to take table
property and table storage for ctas
----------------------------------------------------------------
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]