-
Notifications
You must be signed in to change notification settings - Fork 12
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
Reporting CTE Materialized clause and Sql body in Function #2165
Changes from 1 commit
15b4e98
a9ab725
06108b6
3c0fee2
c3f291d
3058bf7
304b991
e89e77a
9a358df
012cdb9
72b73d8
fc1b227
1eb486e
f52074c
1659133
3ec1447
f252657
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -579,6 +579,7 @@ func (c *CommonTableExpressionDetector) Detect(msg protoreflect.Message) error { | |
return err | ||
} | ||
if cteNode.Ctematerialized != queryparser.CTE_MATERIALIZED_DEFAULT { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add a comment here explaining that both MATERIALIZED, NOT MATERIALIZED flags were not supported.. |
||
//MATERIALIZED / NOT MATERIALIZED clauses in CTE is not supported in YB | ||
c.materializedClauseDetected = true | ||
} | ||
return nil | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -567,12 +567,13 @@ func NewForeignKeyReferencesPartitionedTableIssue(objectType string, objectName | |
} | ||
|
||
var sqlBodyInFunctionIssue = issue.Issue{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please define a Description for each issue moving forward. |
||
Type: SQL_BODY_IN_FUNCTION, | ||
Name: SQL_BODY_IN_FUNCTION_NAME, | ||
Impact: constants.IMPACT_LEVEL_1, | ||
Suggestion: "No workaround available", | ||
GH: "https://github.com/yugabyte/yugabyte-db/issues/25575", | ||
DocsLink: "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#postgresql-12-and-later-features", | ||
Type: SQL_BODY_IN_FUNCTION, | ||
Name: SQL_BODY_IN_FUNCTION_NAME, | ||
Impact: constants.IMPACT_LEVEL_1, | ||
Description: "SQL Body for sql languages in function statement is not supported in YugabyteDB", | ||
Suggestion: "No workaround available", | ||
GH: "https://github.com/yugabyte/yugabyte-db/issues/25575", | ||
DocsLink: "https://docs.yugabyte.com/preview/yugabyte-voyager/known-issues/postgresql/#postgresql-12-and-later-features", | ||
} | ||
|
||
func NewSqlBodyInFunctionIssue(objectType string, objectName string, SqlStatement string) QueryIssue { | ||
|
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.
What about MATERIALIZED CTE issue? Can they not show up in DDLs?
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.
yeah CTE can be in CREATE VIEW, adding it here as well