Skip to content

Commit

Permalink
add bounded param for arrow source
Browse files Browse the repository at this point in the history
Signed-off-by: chenxu <[email protected]>
  • Loading branch information
dmetasoul01 committed Nov 13, 2024
1 parent 2071415 commit 2f7ad34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ public Set<String> finishedSplits() {

@Override
public void close() throws Exception {
LOG.info("Close reader split {}, read num {}", splitId, totalRead);
if (this.currentVCR != null) {
this.currentVCR.close();
this.currentVCR = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ public static LakeSoulArrowSource create(
TableInfo tableInfo = DataOperation.dbManager().getTableInfoByNameAndNamespace(tableName, tableNamespace);
RowType tableRowType = ArrowUtils.fromArrowSchema(Schema.fromJSON(tableInfo.getTableSchema()));
DBUtil.TablePartitionKeys tablePartitionKeys = DBUtil.parseTableInfoPartitions(tableInfo.getPartitions());
boolean isBounded = conf.getBoolean("IS_BOUNDED", false);
return new LakeSoulArrowSource(
tableInfo,
tableId,
conf.toMap(),
isBounded,
tableRowType,
tablePartitionKeys.primaryKeys,
tablePartitionKeys.rangeKeys
Expand All @@ -56,8 +58,8 @@ public static LakeSoulArrowSource create(
tableInfo,
tableId,
conf.toMap(),
tableRowType,
isBounded,
tableRowType,
tablePartitionKeys.primaryKeys,
tablePartitionKeys.rangeKeys,
remainingPartitions
Expand All @@ -68,8 +70,8 @@ public static LakeSoulArrowSource create(
TableInfo tableInfo,
TableId tableId,
Map<String, String> optionParams,
RowType tableRowType,
boolean isBounded,
RowType tableRowType,
List<String> pkColumns,
List<String> partitionColumns,
List<Map<String, String>> remainingPartitions
Expand All @@ -94,6 +96,7 @@ public static LakeSoulArrowSource create(
TableInfo tableInfo,
TableId tableId,
Map<String, String> optionParams,
boolean isBounded,
RowType tableRowType,
List<String> pkColumns,
List<String> partitionColumns
Expand All @@ -103,7 +106,7 @@ public static LakeSoulArrowSource create(
tableRowType,
tableRowType,
tableRowType,
false,
isBounded,
pkColumns,
partitionColumns,
optionParams,
Expand Down

0 comments on commit 2f7ad34

Please sign in to comment.