Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-34467] add lineage integration for jdbc connector #149

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HuangZhenQiu
Copy link
Contributor

Add native lineage support for JDBC connector. It is an ongoing effort. The PR is not ready for review.

@davidradl
Copy link
Contributor

@HuangZhenQiu I notice your comment "The PR is not ready for review.", I wonder if you could turn this PR into a draft until it is ready for review - thanks.


/** Default implementation of {@link TypeDatasetFacet}. */
@PublicEvolving
public class DefaultTypeDatasetFacet implements TypeDatasetFacet {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point this should be moved to flink-core but I understand why this hasn't been done prior to this PR.

public class Db2LocationExtractor implements JdbcLocationExtractor {

private JdbcLocationExtractor delegate() {
return new OverrideJdbcLocationExtractor("db2");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be better to have delegate as class member instead of creating it each call?

* limitations under the License.
*/

package org.apache.flink.connector.jdbc.cratedb.database.lineage;
Copy link

@pawel-big-lebowski pawel-big-lebowski Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it make more sense to implement those classes within openlineage-sql-java package?
It's kind of a namespace convention thing, and implementing this a generic way, which is reusable across the integrations, can be a better solution. what do you think?

return nameOf(simpleJdbcQueryStatement.query());
}

public static Optional<String> nameOf(String query) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please specify what name is this. Dataset name, job name?

@HuangZhenQiu HuangZhenQiu force-pushed the FLINK-34467-jdbc-lineage branch from 2d0ba42 to 032eab5 Compare January 20, 2025 04:31
@davidradl
Copy link
Contributor

Add native lineage support for JDBC connector. It is an ongoing effort. The PR is not ready for review.

@HuangZhenQiu It would be worth changing this text in the PR, as I think the PR is ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants