X-czh commented on code in PR #24618: URL: https://github.com/apache/flink/pull/24618#discussion_r1644429269
########## flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecTableSourceScan.java: ########## @@ -175,15 +200,32 @@ protected Transformation<RowData> translateToPlanInternal( provider.getClass().getSimpleName() + " is unsupported now."); } + LineageDataset tableLineageDataset = + TableLineageUtils.createTableLineageDataset( + tableSourceSpec.getContextResolvedTable(), lineageVertex); + + TableSourceLineageVertex sourceLineageVertex = + new TableSourceLineageVertexImpl( + Arrays.asList(tableLineageDataset), + provider.isBounded() + ? Boundedness.BOUNDED + : Boundedness.CONTINUOUS_UNBOUNDED); + if (sourceParallelismConfigured) { - return applySourceTransformationWrapper( - sourceTransform, - planner.getFlinkContext().getClassLoader(), - outputTypeInfo, - config, - tableSource.getChangelogMode(), - sourceParallelism); + ((TransformationWithLineage<RowData>) sourceTransform) + .setLineageVertex(sourceLineageVertex); + Transformation<RowData> sourceTransformationWrapper = + applySourceTransformationWrapper( + sourceTransform, + planner.getFlinkContext().getClassLoader(), + outputTypeInfo, + config, + tableSource.getChangelogMode(), + sourceParallelism); + return sourceTransformationWrapper; } else { + ((TransformationWithLineage<RowData>) sourceTransform) Review Comment: Currently, ########## flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecTableSourceScan.java: ########## @@ -175,15 +200,32 @@ protected Transformation<RowData> translateToPlanInternal( provider.getClass().getSimpleName() + " is unsupported now."); } + LineageDataset tableLineageDataset = + TableLineageUtils.createTableLineageDataset( + tableSourceSpec.getContextResolvedTable(), lineageVertex); + + TableSourceLineageVertex sourceLineageVertex = + new TableSourceLineageVertexImpl( + Arrays.asList(tableLineageDataset), + provider.isBounded() + ? Boundedness.BOUNDED + : Boundedness.CONTINUOUS_UNBOUNDED); + if (sourceParallelismConfigured) { - return applySourceTransformationWrapper( - sourceTransform, - planner.getFlinkContext().getClassLoader(), - outputTypeInfo, - config, - tableSource.getChangelogMode(), - sourceParallelism); + ((TransformationWithLineage<RowData>) sourceTransform) + .setLineageVertex(sourceLineageVertex); + Transformation<RowData> sourceTransformationWrapper = + applySourceTransformationWrapper( + sourceTransform, + planner.getFlinkContext().getClassLoader(), + outputTypeInfo, + config, + tableSource.getChangelogMode(), + sourceParallelism); + return sourceTransformationWrapper; } else { + ((TransformationWithLineage<RowData>) sourceTransform) Review Comment: Currently, -- 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. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org