dropPlaceholderStmt returns the statement that drops the temporary placeholder emitted for a view or materialized view before its real definition. The placeholder is always a regular view (see getTemporaryMaterializedView), so it is dropped with DROP VIEW regardless of the final object type.
(name string)
| 233 | // regular view (see getTemporaryMaterializedView), so it is dropped with DROP VIEW |
| 234 | // regardless of the final object type. |
| 235 | func dropPlaceholderStmt(name string) string { |
| 236 | return fmt.Sprintf("DROP VIEW IF EXISTS `%s`;\n", name) |
| 237 | } |
| 238 | |
| 239 | func getTemporaryView(name string, columns []string) string { |
| 240 | var parts []string |
no outgoing calls