1
0

[HUDI-1701] Implement HoodieTableSource.explainSource for all kinds of pushing down (#2690)

We should implement the interface HoodieTableSource.explainSource to
track the table source signature diff for all kinds of pushing down,
such as filter pushing or limit pushing.
This commit is contained in:
Danny Chan
2021-03-17 23:05:18 +08:00
committed by GitHub
parent 74241947c1
commit 968488fa3a
2 changed files with 22 additions and 2 deletions

View File

@@ -171,9 +171,16 @@ public class HoodieDataSourceITCase extends AbstractTestBase {
execInsertSql(tableEnv, insertInto);
List<Row> rows = CollectionUtil.iterableToList(
List<Row> result1 = CollectionUtil.iterableToList(
() -> tableEnv.sqlQuery("select * from t1").execute().collect());
assertRowsEquals(rows, TestData.DATA_SET_SOURCE_INSERT);
assertRowsEquals(result1, TestData.DATA_SET_SOURCE_INSERT);
// apply filters
List<Row> result2 = CollectionUtil.iterableToList(
() -> tableEnv.sqlQuery("select * from t1 where uuid > 'id5'").execute().collect());
assertRowsEquals(result2, "["
+ "id6,Emma,20,1970-01-01T00:00:06,par3, "
+ "id7,Bob,44,1970-01-01T00:00:07,par4, "
+ "id8,Han,56,1970-01-01T00:00:08,par4]");
}
// -------------------------------------------------------------------------