alibaba / alibaba/cobar

cobar支持用datetime类型做拆表的维度吗?

Open
#57 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

我刚试了下貌似会报错
mysql> insert into myorder (id, city_id, place_tm, name) values (1,10,'2015-06-01 00:00:00','testme1');
ERROR 1003 (HY000): For input string: "2015-06-01 00:00:00"

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported INSERT using a datetime value and inspect Cobar's handling of the sharding-dimension value. Determine why "2015-06-01 00:00:00" is rejected, then verify that inserts using a datetime dimension complete successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.