apache / doris-flink-connector

Flink Connector for Apache Doris
https://doris.apache.org/
Apache License 2.0
315 stars 221 forks source link

[Improve]Support modify column type without default when column exists default value #490

Closed qg-lin closed 2 weeks ago

qg-lin commented 2 weeks ago

Proposed changes

  1. Allow modifying a column type that has a default value even if upstream does not carry a default value.
  2. Fallback to the original default value if upstream wants to change the default value to others.

Issue Number: close #xxx

Problem Summary:

Currently, it's not allowed to change a column type that has a default value when upstream does not carry a default value.

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...