Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Unresolved
-
None
Description
HiveIncrementalPuller checks the clause in incrementalSqlFile like this ->
if (!incrementalSQL.contains("`_hoodie_commit_time` > '%targetBasePath'"))
{ LOG.info("Incremental SQL : " + incrementalSQL + " does not contain `_hoodie_commit_time` > %targetBasePath. Please add " + "this clause for incremental to work properly."); throw new HoodieIncrementalPullSQLException( "Incremental SQL does not have clause `_hoodie_commit_time` > '%targetBasePath', which " + "means its not pulling incrementally"); }Basically we are trying to add a placeholder here which is later replaced with config.fromCommitTime here -
incrementalPullSQLtemplate.add("incrementalSQL", String.format(incrementalSQL, config.fromCommitTime));
Hence, the above check needs to replaced with `_hoodie_commit_time` > %s
Attachments
Issue Links
- links to