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

[#1761] fix(mysql)clarify timestamp and datetime type convert #3477

Merged
merged 1 commit into from
May 22, 2024

Conversation

mchades
Copy link
Contributor

@mchades mchades commented May 20, 2024

What changes were proposed in this pull request?

  • map datetime of MySQL to timestamp of Gravitino
  • map timestamp of MySQL to timestamp_tz type of Gravitino.

Why are the changes needed?

unify the type semantics

Fix: #1761

Does this PR introduce any user-facing change?

no

How was this patch tested?

tests added

@mchades mchades requested review from jerryshao and FANNG1 May 20, 2024 14:48
@mchades mchades self-assigned this May 20, 2024
@jerryshao jerryshao requested a review from yuqi1129 May 21, 2024 06:43
Copy link
Contributor

@yuqi1129 yuqi1129 left a comment

Choose a reason for hiding this comment

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

LGTM

@jerryshao jerryshao merged commit 264612e into apache:main May 22, 2024
22 checks passed
github-actions bot pushed a commit that referenced this pull request May 22, 2024
)

### What changes were proposed in this pull request?

 - map `datetime` of MySQL to `timestamp` of Gravitino
 - map `timestamp` of MySQL to `timestamp_tz` type of Gravitino.

### Why are the changes needed?

unify the type semantics

Fix: #1761 

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

tests added
diqiu50 pushed a commit to diqiu50/gravitino that referenced this pull request Jun 13, 2024
…rt (apache#3477)

### What changes were proposed in this pull request?

 - map `datetime` of MySQL to `timestamp` of Gravitino
 - map `timestamp` of MySQL to `timestamp_tz` type of Gravitino.

### Why are the changes needed?

unify the type semantics

Fix: apache#1761 

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

tests added
@mchades mchades deleted the mysql-timestamp branch November 22, 2024 07:31
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.

[Bug report] MysqlTypeConverter cannot handle the datetime data type.
3 participants