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

DMD-33 bucket refresh fix column data types #181

Merged
merged 9 commits into from
Jan 27, 2025

Conversation

vojtabiberle
Copy link
Contributor

@vojtabiberle vojtabiberle commented Jan 23, 2025

Jira: DMD-33
Connection PR: https://github.com/keboola/connection/pull/5415
SAPI PR: keboola/storage-api-php-client#1439


Changes:
 - add length & precision for data types

@vojtabiberle vojtabiberle force-pushed the vb-DMD-33-bucket-refresh-fix-column-data-types branch 5 times, most recently from 4c6751e to b29ee29 Compare January 23, 2025 15:28
@vojtabiberle vojtabiberle force-pushed the vb-DMD-33-bucket-refresh-fix-column-data-types branch from b29ee29 to 9222584 Compare January 23, 2025 16:11
WHEN DATA_TYPE IN ('BINARY', 'VARBINARY') THEN
'BINARY'

-- Default case for all other types as they are mapped by DESC TABLE direcly to themself
Copy link
Contributor

Choose a reason for hiding this comment

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

premyslim jeste o dalsich datatypech (napr FLOAT...), ale asi to nechme tak

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

ne, to je prece v poradku, je to shodne s DESC table -> bude to float
image

image

Copy link
Contributor

Choose a reason for hiding this comment

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

ta myslenka byla v tom, ze jsi identifikoval nejake datatypy, ktere v te query resis. Ale neumime rict, jestli se vsechny ostatni pak chovaji "spravne" - tzn muzou defaultovat na to co o sobe opradvu rikaji

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Jo máš pravdu, float je OK.

Asi by teoreticky mohl bejt problém s novým data typem nebo pokud to snowflake změni.

Rád bych pak napsal test, který to bude porovnávat, ale asi až to celé doklepnu tak jako další udržovací task.

Copy link
Contributor

Choose a reason for hiding this comment

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

@vojtabiberle vojtabiberle force-pushed the vb-DMD-33-bucket-refresh-fix-column-data-types branch from d5e63a1 to 798c3af Compare January 24, 2025 23:52
@vojtabiberle vojtabiberle merged commit b4ea7a6 into main Jan 27, 2025
24 checks passed
@vojtabiberle vojtabiberle deleted the vb-DMD-33-bucket-refresh-fix-column-data-types branch January 27, 2025 20:20
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