zhangshenghang commented on PR #10779:
URL: https://github.com/apache/seatunnel/pull/10779#issuecomment-7231044552

   @DanielLeens @dybyte — the design question now has a concrete answer, and it 
confirms @dybyte's premise: the runtime input is relation metadata, not a DDL 
string. `dev` already carries the implementation in #11922 (commit 
`8bea8c681c`, "Support PostgreSQL CDC ADD COLUMN schema evolution"), which is 
the path this PR was meant to prepare:
   
   ```text
   pgoutput RELATION message
    -> Debezium PostgresSchema (dev: PostgresSourceFetchTaskContext.java:250)
         
databaseSchema.setRelationChangeListener(this::dispatchRelationSchemaChange)
    -> PostgresSourceFetchTaskContext.dispatchRelationSchemaChange (dev: :405)
         diff against lastRelationSchemas / relationSchemaBaseline
         enqueue synthetic PostgresRelationSchemaRecord
         (key io.debezium.connector.postgresql.SchemaChangeKey)
    -> PostgresRelationSchemaChangeResolver
         old/new Table snapshots -> AlterTableColumnsEvent
    -> PostgresIncrementalSource.createSchemaChangeResolver (dev: :152)
         selected when schema evolution is enabled; supports() = ADD_COLUMN 
(:178-179)
   ```
   
   So there is no call site that could ever hand an `ALTER TABLE` string to 
`PostgresAlterTableParser`: with pgoutput the connector never receives the SQL 
text, and #11922 derives the events by diffing two `Table`/`Column` snapshots 
exactly as you predicted on 2026-08-03. The parser-first approach in this PR 
would be routed around by the merged design rather than extended.
   
   Conclusion: this PR is superseded, not fixable. Unless you want a different 
disposition, I will close it as superseded and drop the DDL-parser path; the 
only piece with independent value was 
`PostgresTypeUtils.convertToSeaTunnelColumn`'s negative-length guard, and 
#11922 already builds `Column` from relation metadata, so I do not plan to 
carry it as a separate PR unless someone finds a gap there. Thanks for keeping 
the question open instead of letting the stale "Approved" state stand — you 
were right that merging it first would have locked in the wrong shape.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to