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][JDBC] Improve the jdbc parallel-reader generated sql #8767

Open
2 of 3 tasks
liunaijie opened this issue Feb 19, 2025 · 1 comment
Open
2 of 3 tasks

[Feature][JDBC] Improve the jdbc parallel-reader generated sql #8767

liunaijie opened this issue Feb 19, 2025 · 1 comment

Comments

@liunaijie
Copy link
Member

Search before asking

  • I had searched in the feature and found no similar feature requirement.

Description

In JDBC connector.
JDBC connector has a parallel-reader feature.
It can split the user big query to multiple small query.

The generated sql pattern is like this:

select * from (user special sql) where md5(partition_col) % total_paraliam = current_paraliam_index

But there has a problem if the user special sql contains sql hints.
For example, the user query is

SELECT /*+ SET_VAR(query_timeout = 6000) */ col_a, col_b from table_a

After sql re-generate, the executed sql would be

select * from ( SELECT /*+ SET_VAR(query_timeout = 6000) */ col_a, col_b  from table_a )  xxxxx

Then the sql hint will be ignore.

Usage Scenario

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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

No branches or pull requests

1 participant