Skip to content

Add cursor configuration to connection args#513

Open
VitaliyFedorov wants to merge 2 commits intocloudera:masterfrom
VitaliyFedorov:add-cursor-configuration-to-conn-args
Open

Add cursor configuration to connection args#513
VitaliyFedorov wants to merge 2 commits intocloudera:masterfrom
VitaliyFedorov:add-cursor-configuration-to-conn-args

Conversation

@VitaliyFedorov
Copy link

It's feature for possibity to add cursor configuration options while connection creating, to be used for any new cursor further.

Reason: Some options much better to set once, but not each time when you need cursor, e.g.: impala.doas.user, which allow to set proxy user for impala (https://impala.apache.org/docs/build/html/topics/impala_delegation.html)

log.debug('.cursor(): getting new session_handle')

session = self.service.open_session(user, configuration)
session_configuration = {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

The comments about configuration could be updated to reflect that it overrides connection level cursor_configuration

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

Successfully merging this pull request may close these issues.

2 participants