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

[Feature][DataSource]Add flink datasource plugin #15640

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

Conversation

pegasas
Copy link
Contributor

@pegasas pegasas commented Feb 27, 2024

Purpose of the pull request

fix: #15630

[Feature][Datasource] add flink datasource

Brief change log

Currently spark use thrift server for replacement of hiveserver2 to provide Spark SQL capability.
https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/sql-gateway/overview/
Flink SQL Gateway is also a replacement solution of hiveserver2.

Verify this pull request

image
image
image
image

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@github-actions github-actions bot added UI ui and front end related backend document labels Feb 27, 2024
@pegasas pegasas force-pushed the issues/15630 branch 2 times, most recently from a213494 to 36503c2 Compare February 27, 2024 11:45
@caishunfeng caishunfeng added the feature new feature label Feb 28, 2024
Copy link
Member

@songjianet songjianet left a comment

Choose a reason for hiding this comment

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

image

}
hosts.deleteCharAt(hosts.length() - 1);
flinkDataSourceParamDTO.setHost(hosts.toString());
flinkDataSourceParamDTO.setPort(Integer.parseInt(hostPortArray[0].split(Constants.COLON)[1]));

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException

Potential uncaught 'java.lang.NumberFormatException'.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack.
Thanks for calling out.

@pegasas
Copy link
Contributor Author

pegasas commented Mar 25, 2024

Caused by: java.sql.SQLFeatureNotSupportedException: FlinkConnection#prepareStatement is not supported yet.
at org.apache.flink.table.jdbc.BaseConnection.prepareStatement(BaseConnection.java:42)
at org.apache.flink.table.jdbc.FlinkConnection.prepareStatement(FlinkConnection.java:49)
at org.apache.dolphinscheduler.plugin.task.sql.SqlTask.prepareStatementAndBind(SqlTask.java:380)
... 8 common frames omitted

will do some compacity work on sql task

@pegasas pegasas force-pushed the issues/15630 branch 5 times, most recently from 5314afb to 14d308d Compare March 25, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend document feature new feature UI ui and front end related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature][Datasource] Add Flink Datasource
3 participants