potterhe opened a new pull request, #600:
URL: https://github.com/apache/doris-flink-connector/pull/600
# Proposed changes
## Problem Summary:
```sql
CREATE TABLE `modify_column_type_with_default_value2` (
`id` int NOT NULL,
`cname` varchar(11) NOT NULL DEFAULT ""
)
UNIQUE KEY(`id`)
DISTRIBUTED BY HASH(`id`) BUCKETS 1
PROPERTIES (
"replication_num" = "1"
);
```
call api
```
String columnName = "cname";
String newColumnType = "varchar(11)";
FieldSchema field = new FieldSchema(columnName, newColumnType, "");
schemaChangeManager.modifyColumnDataType(DATABASE, modifyColumnTbls,
field);
```
The actual generated ddl is
```sql
ALTER TABLE `test_sc_db`.`modify_column_type_with_default_value2` MODIFY
COLUMN `cname` varchar(11)
```
Expected generated ddl is
```sql
ALTER TABLE `test_sc_db`.`modify_column_type_with_default_value2` MODIFY
COLUMN `cname` varchar(11) DEFAULT ''
```
## Checklist(Required)
1. Does it affect the original behavior: (Yes)
2. Has unit tests been added: (Yes)
3. Has document been added or modified: (No Need)
4. Does it need to update dependencies: (No)
5. Are there any changes that cannot be rolled back: (No)
## Further comments
n/a
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]