Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support MySQL CTAS #351

Merged
merged 4 commits into from
Jan 8, 2025
Merged

feat: support MySQL CTAS #351

merged 4 commits into from
Jan 8, 2025

Conversation

fanyang01
Copy link
Collaborator

@fanyang01 fanyang01 commented Jan 7, 2025

Resolves #32

@fanyang01 fanyang01 requested a review from Copilot January 8, 2025 10:34
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (8)

catalog/type_mapping.go:243

  • The function CreateBitType should be checked for error handling. Ensure that it returns an appropriate error if the bit type creation fails.
return types.CreateBitType(duckType.mysql.Precision)

catalog/type_mapping.go:249

  • The function CreateNumberTypeWithDisplayWidth should be checked for error handling. Ensure that it returns an appropriate error if the number type creation fails.
return types.CreateNumberTypeWithDisplayWidth(intBaseType, int(duckType.mysql.Display))

catalog/type_mapping.go:264

  • The function CreateDatetimeType should be checked for error handling. Ensure that it returns an appropriate error if the datetime type creation fails.
return types.CreateDatetimeType(sqltypes.Datetime, precision)

catalog/type_mapping.go:266

  • The function CreateDatetimeType should be checked for error handling. Ensure that it returns an appropriate error if the timestamp type creation fails.
return types.CreateDatetimeType(sqltypes.Timestamp, precision)

catalog/type_mapping.go:274

  • The function CreateDecimalType should be checked for error handling. Ensure that it returns an appropriate error if the decimal type creation fails.
return types.CreateDecimalType(numericPrecision, numericScale)

catalog/type_mapping.go:297

  • The function CreateString should be checked for error handling. Ensure that it returns an appropriate error if the string type creation fails.
return types.CreateString(sqltypes.VarChar, length, collation)

catalog/type_mapping.go:301

  • The function CreateSetType should be checked for error handling. Ensure that it returns an appropriate error if the set type creation fails.
return types.CreateSetType(duckType.mysql.Values, collation)

catalog/type_mapping.go:326

  • The function CreateEnumType should be checked for error handling. Ensure that it returns an appropriate error if the enum type creation fails.
return types.CreateEnumType(duckType.mysql.Values, collation)

catalog/database.go Show resolved Hide resolved
@fanyang01 fanyang01 merged commit 4145be1 into main Jan 8, 2025
14 checks passed
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.

feat: support CREATE TABLE ... SELECT ... FROM ...
1 participant