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: Ensure type column in information_schema views is not null #121

Merged
merged 4 commits into from
Aug 3, 2024

Conversation

DanCardin
Copy link
Contributor

I noticed this when trying to use snowflake-sqlalchemy to test view creation using fakesnow. It's actually sort of also a bug in snowflake-sqlalchemy, that it's hitting an untested code path and failing. but also, this column should have a type, and adding one avoids the latent bug in snowflake-sqlalchemy.

Copy link
Owner

@tekumara tekumara left a comment

Choose a reason for hiding this comment

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

Good catch!

tests/test_info_schema.py Outdated Show resolved Hide resolved
tests/test_info_schema.py Outdated Show resolved Hide resolved
tests/test_info_schema.py Outdated Show resolved Hide resolved
@tekumara tekumara changed the title fix: Apply a type to information_table tables. fix: Ensure type column in information_schema views is not null Aug 3, 2024
@tekumara tekumara merged commit 7340a4a into tekumara:main Aug 3, 2024
1 check passed
tekumara pushed a commit that referenced this pull request Aug 4, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.9.21](v0.9.20...v0.9.21)
(2024-08-04)


### Features

* alter table cluster by
([9a78fc2](9a78fc2))


### Bug Fixes

* Allow connection with schema=information_schema
([#122](#122))
([51e4e68](51e4e68))
* columns returned by describe view information_schema.columns
([83c62b6](83c62b6))
* Ensure type column in information_schema views is not null
([#121](#121))
([7340a4a](7340a4a))
* Only set variables for SetItem expressions
([#116](#116))
([0e0711c](0e0711c))


### Chores

* bump sqlglot 25.5.1
([713d93d](713d93d))
* cruft update
([72b791b](72b791b))
* **deps-dev:** bump pyright from 1.1.369 to 1.1.374
([#118](#118))
([17a8760](17a8760))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: potatobot-prime[bot] <132267321+potatobot-prime[bot]@users.noreply.github.com>
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