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 snowflake definitions directly from SchemaReflection #178

Merged
merged 6 commits into from
Jan 21, 2025

Conversation

vojtabiberle
Copy link
Contributor

@vojtabiberle vojtabiberle commented Jan 17, 2025

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


Changes:
SnowflakeSchemaReflection can directly return whole schema definition and uses less queries

@vojtabiberle vojtabiberle force-pushed the vb-DMD-33-bucket-refresh branch 2 times, most recently from a240706 to c408d87 Compare January 17, 2025 19:05
@vojtabiberle vojtabiberle force-pushed the vb-DMD-33-bucket-refresh branch from c408d87 to afa34a1 Compare January 17, 2025 19:16
@vojtabiberle vojtabiberle force-pushed the vb-DMD-33-bucket-refresh branch from 2f6327f to 953cd8b Compare January 17, 2025 23:16
@vojtabiberle vojtabiberle force-pushed the vb-DMD-33-bucket-refresh branch from b208341 to 1ac332a Compare January 20, 2025 00:16
@vojtabiberle vojtabiberle force-pushed the vb-DMD-33-bucket-refresh branch from 1ac332a to 168db75 Compare January 20, 2025 00:32
Copy link
Contributor

@jirkasemmler jirkasemmler left a comment

Choose a reason for hiding this comment

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

to buildeni poli je takove krypticke, ale ok, je to aspon primitivni pole, coz lip s pameti asi nevymyslime

{
$informationsQuery = sprintf(
'SELECT TABLE_NAME, TABLE_TYPE, BYTES, ROW_COUNT '.
'FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = \'%s\' ORDER BY TABLE_NAME;',
Copy link
Contributor

@jirkasemmler jirkasemmler Jan 20, 2025

Choose a reason for hiding this comment

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

tohle by se melo escapovat jako SnowflakeQuote::quote($this->schemaName), nemusel bys pak mit \'%s\'

udelej to pls jeste takto, at to tady je jednotne

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pravda, upraveno

@vojtabiberle
Copy link
Contributor Author

to buildeni poli je takove krypticke, ale ok, je to aspon primitivni pole, coz lip s pameti asi nevymyslime

Jako já vím, ale musel jsem se nějak držet té struktury, kterou tam už máme, aby to bylo vlastně zaměnitelné v connection a všude jinde.

@jirkasemmler jirkasemmler merged commit 4af4c2a into main Jan 21, 2025
24 checks passed
@jirkasemmler jirkasemmler deleted the vb-DMD-33-bucket-refresh branch January 21, 2025 12:34
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