IsSchemaChangingStatement reports whether the node is a DDL statement.
(node ast.Node)
| 103 | |
| 104 | // IsSchemaChangingStatement reports whether the node is a DDL statement. |
| 105 | func IsSchemaChangingStatement(node ast.Node) bool { |
| 106 | queryType, _ := getQueryType(node) |
| 107 | return queryType == base.DDL |
| 108 | } |
| 109 | |
| 110 | // containsSystemSchema reports whether a query references a Trino system/metadata |
| 111 | // schema, via a case-insensitive substring scan. This mirrors the legacy |