Skip to content

Conversation

NickCrews
Copy link
Contributor

@NickCrews NickCrews commented Mar 21, 2025

Related to, but not a full implementation, for #10991.

Just curious @cpcloud, is there a reason why we build up these schema queries using sqlglot instead of just raw SQL? Since we know this will only ever run on postgres, the portability/translation benefits of sqlglot are wasted. It seems like just writing the raw SQL string will be faster to execute, more stable, more familiar to more maintainers, and is easier to edit with LLMs (what I did here was compile this to SQL, ask an LLM to adjust it, and then translated the response back to sqlglot).

@github-actions github-actions bot added the postgres The PostgreSQL backend label Mar 21, 2025
@NickCrews NickCrews force-pushed the postgres-read-enum branch from 0b0ff19 to 8c5a8df Compare March 21, 2025 09:10
@github-actions github-actions bot added the tests Issues or PRs related to tests label Mar 21, 2025
@NickCrews NickCrews force-pushed the postgres-read-enum branch 3 times, most recently from 6298694 to 3f796c7 Compare March 21, 2025 18:20
@cpcloud cpcloud merged commit dfb818a into ibis-project:main Mar 23, 2025
111 checks passed
@cpcloud
Copy link
Member

cpcloud commented Mar 23, 2025

Thanks!

@NickCrews
Copy link
Contributor Author

I am discovering now that this PR did NOT generalize postgres to work for nested types that contain enums, eg an enum array column. So that would need to be done in a followup PR if anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postgres The PostgreSQL backend tests Issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants