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-28358][connector/jdbc][Tests] fix when debug in local ,the SqlValidatorImpl.class conflict problem and add lookup testcase #20185

Closed

Conversation

vchangpengfei
Copy link

@vchangpengfei vchangpengfei commented Jul 6, 2022

…ValidatorImpl.class conflict problem

##add JdbcLookupTableITCase test and fix class conflict when run in idea

  • when run test org.apache.flink.connector.jdbc.table.JdbcLookupTableITCase.testLookup in local idea,the jar of calcite-core.jar is loaded before mudule of flink-table-planner ,lead to ValidatorImpl.class in calcite-core.jar load priority*

Brief change log

  • add JdbcLookupTableITCase test
  • change the dependency order in pom

Verifying this change

This change is covered by tests, apache.flink.connector.jdbc.table.JdbcLookupTableITCase.testLookup.

image

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): ( no)
  • The serializers: ( no )
  • The runtime per-record code paths (performance sensitive): (no )
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no )
  • The S3 file system connector: ( no )

Documentation

  • Does this pull request introduce a new feature? (no)

because flink-table-planner use maven-shade-plugin if run with maven directly is ok,but run in idea may lead to exception

hope to help others in the community, feel free to review
thanks

…ValidatorImpl.class conflict problem and add lookup testcase
@flinkbot
Copy link
Collaborator

flinkbot commented Jul 6, 2022

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@MartijnVisser
Copy link
Contributor

@vchangpengfei We've now moved the code from the JDBC connector to its own dedicated repository; please re-route this PR to https://github.com/apache/flink-connector-jdbc

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