Skip to content

[Feature] [Jdbc] custom configuration #5875

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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

bright-zy
Copy link

Hello, when using jdbc, I need to set some properties before executing the query. It is not supported currently, so I added some things to help with the review.
Implement jdbc:hive2 custom attribute configuration, such as 'SET spark.tispark.pd.addresses=pd1:2379,pd2:2379,pd3:2379'

@EricJoy2048
Copy link
Member

Hello, when using jdbc, I need to set some properties before executing the query. It is not supported currently, so I added some things to help with the review. Implement jdbc:hive2 custom attribute configuration, such as 'SET spark.tispark.pd.addresses=pd1:2379,pd2:2379,pd3:2379'

If you do not need user defined operations and data write operations in the same session, you can use data_save_mode; If you need these operations to be in the same session, you can propose a proposal to discuss this issue.

@bright-zy
Copy link
Author

@bright-zy
Copy link
Author

Hello, when using jdbc, I need to set some properties before executing the query. It is not supported currently, so I added some things to help with the review. Implement jdbc:hive2 custom attribute configuration, such as 'SET spark.tispark.pd.addresses=pd1:2379,pd2:2379,pd3:2379'

If you do not need user defined operations and data write operations in the same session, you can use data_save_mode; If you need these operations to be in the same session, you can propose a proposal to discuss this issue.

I need to set these configurations in the same session, because these configurations are required when executing SQL in the current session and cannot be satisfied across sessions.I make a proposal.

@EricJoy2048
Copy link
Member

Hello, when using jdbc, I need to set some properties before executing the query. It is not supported currently, so I added some things to help with the review. Implement jdbc:hive2 custom attribute configuration, such as 'SET spark.tispark.pd.addresses=pd1:2379,pd2:2379,pd3:2379'

If you do not need user defined operations and data write operations in the same session, you can use data_save_mode; If you need these operations to be in the same session, you can propose a proposal to discuss this issue.

I need to set these configurations in the same session, because these configurations are required when executing SQL in the current session and cannot be satisfied across sessions.I make a proposal.

Do you have any ideas or designs to implement this feature? If so, you can share them here via email or google document for our discussion?

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

Successfully merging this pull request may close these issues.

4 participants