-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
a240706
to
c408d87
Compare
c408d87
to
afa34a1
Compare
2f6327f
to
953cd8b
Compare
This reverts commit 953cd8b.
b208341
to
1ac332a
Compare
1ac332a
to
168db75
Compare
There was a problem hiding this 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;', |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pravda, upraveno
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. |
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