(cmd *pg_query.AlterTableCmd)
| 444 | } |
| 445 | |
| 446 | func alterColumnTypeHasUsingExpression(cmd *pg_query.AlterTableCmd) bool { |
| 447 | if cmd == nil || cmd.Subtype != pg_query.AlterTableType_AT_AlterColumnType { |
| 448 | return false |
| 449 | } |
| 450 | def := cmd.Def.GetColumnDef() |
| 451 | // pg_query stores ALTER COLUMN TYPE ... USING <expr> on ColumnDef.RawDefault |
| 452 | // for AT_AlterColumnType commands. |
| 453 | return def != nil && def.RawDefault != nil |
| 454 | } |
| 455 | |
| 456 | // isUnsupportedAlterCommand checks if an ALTER TABLE command is unsupported by DuckLake |
| 457 | func (t *DDLTransform) isUnsupportedAlterCommand(cmd *pg_query.AlterTableCmd) bool { |
no outgoing calls
no test coverage detected