-
Notifications
You must be signed in to change notification settings - Fork 2k
[Improve][Connector-V2] Optimize dialect selection in jdbc #8820
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
dd51e9d
[Improve][Connector-V2] Optimize dialect selection in jdbc
corgy-w a8bcd66
[Improve][Connector-V2] Optimize doc
corgy-w 88ec7f1
[Improve][Connector-V2] Optimize code
corgy-w d902023
[Improve][Connector-V2] Optimize doc
corgy-w 9c6ac08
[Fix][Connector-V2] opt
corgy-w f4e3b4e
[Fix][Connector-V2] opt
corgy-w File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -49,6 +49,7 @@ supports query SQL and can achieve projection effect. | |||||
| password | String | No | - | password | | ||||||
| query | String | No | - | Query statement | | ||||||
| compatible_mode | String | No | - | The compatible mode of database, required when the database supports multiple compatible modes.<br/> For example, when using OceanBase database, you need to set it to 'mysql' or 'oracle'. <br/> when using starrocks, you need set it to `starrocks` | | ||||||
| dialect | String | No | - | The appointed dialect, if it does not exist, is still obtained according to the url, and the priority is higher than the url. <br/> For example,when using starrocks, you need set it to `starrocks` | | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] There is a missing space after the comma in 'For example,when using starrocks,'.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
| connection_check_timeout_sec | Int | No | 30 | The time in seconds to wait for the database operation used to validate the connection to complete. | | ||||||
| partition_column | String | No | - | The column name for split data. | | ||||||
| partition_upper_bound | Long | No | - | The partition_column max value for scan, if not set SeaTunnel will query database get max value. | | ||||||
|
@@ -93,6 +94,24 @@ decimal_type_narrowing = false | |||||
| NUMBER(6, 0) | Decimal(6, 0) | | ||||||
| NUMBER(10, 0) | Decimal(10, 0) | | ||||||
|
||||||
### dialect [string] | ||||||
|
||||||
The appointed dialect, if it does not exist, is still obtained according to the url, and the priority is higher than the url. For example,when using starrocks, you need set it to `starrocks`. Similarly, when using mysql, you need to set its value to `mysql`. | ||||||
|
||||||
#### dialect list | ||||||
|
||||||
| | Dialect Name | | | ||||||
|-----------|--------------|----------| | ||||||
| Greenplum | DB2 | Dameng | | ||||||
| Gbase8a | HIVE | KingBase | | ||||||
| MySQL | StarRocks | Oracle | | ||||||
| Phoenix | Postgres | Redshift | | ||||||
| SapHana | Snowflake | Sqlite | | ||||||
| SqlServer | Tablestore | Teradata | | ||||||
| Vertica | OceanBase | XUGU | | ||||||
| IRIS | Inceptor | Highgo | | ||||||
|
||||||
|
||||||
## Parallel Reader | ||||||
|
||||||
The JDBC Source connector supports parallel reading of data from tables. SeaTunnel will use certain rules to split the data in the table, which will be handed over to readers for reading. The number of readers is determined by the `parallelism` option. | ||||||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.