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

Implement a crude replacement for SET search_path in Flight SQL frontend #489

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

gruuya
Copy link
Contributor

@gruuya gruuya commented Jan 16, 2024

Closes #487

Instead of adding a support for statement, enable equivalent functionality via tonic metadata values (gRPC request headers).

@gruuya gruuya self-assigned this Jan 16, 2024
@@ -348,7 +351,7 @@ impl SeafowlContext {

let full_table_name = table.to_string();
let mut resolved_ref = TableReference::from(full_table_name.as_str())
.resolve(&self.database, DEFAULT_SCHEMA);
.resolve(&self.default_catalog, &self.default_schema);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the one place where I don't call the new resolve_table_ref as I wasn't able to resolve the lifetime conundrums.

@gruuya gruuya merged commit 4907a35 into main Jan 17, 2024
1 check passed
@gruuya gruuya deleted the search-path branch January 17, 2024 14:01
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.

search_path support
2 participants