Skip to content

[#8957] improvement(catalog-mysql): support more mysql text types#8958

Closed
predator4ann wants to merge 2 commits intoapache:mainfrom
predator4ann:fix/support_more_mysql_text_data_types
Closed

[#8957] improvement(catalog-mysql): support more mysql text types#8958
predator4ann wants to merge 2 commits intoapache:mainfrom
predator4ann:fix/support_more_mysql_text_data_types

Conversation

@predator4ann
Copy link
Contributor

Why are the changes needed?

Fix: #8957

Does this PR introduce any user-facing change?

No

How was this patch tested?

UT already added.

@predator4ann
Copy link
Contributor Author

@mchades PTAL when you have time, thanks.

static final String DATETIME = "datetime";
static final String TINYTEXT = "tinytext";
static final String MEDIUMTEXT = "mediumtext";
static final String LONGTEXT = "longtext";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also need to update the relative user doc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it

Comment on lines +103 to 106
case TINYTEXT:
case MEDIUMTEXT:
case LONGTEXT:
return Types.StringType.get();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These four types will cast to the same type String, will this cause user confusion?

@predator4ann
Copy link
Contributor Author

After verification, the data can be read normally in the current state, so it will be closed first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Add support for more text types for mysql catalog

2 participants