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

fix: psql tab completion #2464

Merged
merged 4 commits into from
Jan 22, 2024
Merged

Conversation

universalmind303
Copy link
Contributor

@universalmind303 universalmind303 commented Jan 19, 2024

closes #2393

This may fix some other pg compatibility issues as the pg_catalog.text dtype seems to be used internally quite a bit.

Comment on lines +272 to +281
SQLDataType::Custom(obj, _) => {
let obj = obj.to_string();
match obj.as_str() {
// PSQL uses `pg_catalog.text` for `text` type in some cases
"pg_catalog.text" => Ok(DataType::Utf8),
_ => Err(DataFusionError::NotImplemented(format!(
"Unsupported SQL type {sql_type:?}"
))),
}
}
Copy link
Member

Choose a reason for hiding this comment

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

@universalmind303 universalmind303 merged commit 0116fc1 into main Jan 22, 2024
20 checks passed
@universalmind303 universalmind303 deleted the universalmind303/tab-completions branch January 22, 2024 19:46
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.

client(psql): tab completion in psql does not return any results
3 participants