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

[load data ... fields terminated by "x"...] x can only be char, expect x can be string #1456

Closed
irene-coming opened this issue Oct 29, 2019 · 3 comments
Assignees
Labels
resolve problem has been fixed by developer
Milestone

Comments

@irene-coming
Copy link
Member

irene-coming commented Oct 29, 2019

  • dble version:
    5.6.29-dble-9.9.9.9-78a278906811927e31ad0cdc0cc19c2379963992-20191012125722
  • preconditions :
    create table sharding_2_t1(id int(4), B float(8,2)) ;
    prepare /tmp/test3.txt, filled with:
1||2
3||4
  • configs:

schema.xml



rule.xml



server.xml



  • steps:
    step1. query in dble
mysql> load data infile '/tmp/test3.txt' into table sharding_2_t1 FIELDS TERMINATED BY '||';
Query OK, 2 rows affected, 4 warnings (0.01 sec)

mysql> select * from sharding_2_t1;
+------+------+
| id   | B    |
+------+------+
|    1 | 0.00 |
|    3 | 0.00 |
+------+------+
2 rows in set (0.00 sec)
  • expect result:
    1. step1 after load data, the data in table is :
+------+------+
| id   | B    |
+------+------+
|    1 | 2.00 |
|    3 | 4.00 |
+------+------+
  • real result:
    1.
  • supplements:
    tester should verify other fields terminated strings, of which "|||" is a must
@PanternBao
Copy link
Member

Fix the issue from dble 2.19.03.1

@PanternBao PanternBao added the resolve problem has been fixed by developer label Nov 8, 2019
@PanternBao PanternBao assigned wjl1619 and unassigned PanternBao Nov 8, 2019
@wjl1619
Copy link
Member

wjl1619 commented Nov 8, 2019

verified on version:
5.6.29-dble-2.19.03.2-b1cb453bf052b6dc34d160b0e1daa8dc9814c387-20191030095427
5.6.29-dble-2.19.05.2-14700a8a98c7f8d8081a78942b804bf65abdb5e5-20191030095612
5.6.29-dble-2.19.07.2-c06b12f3a81a12cb64af59d743c1fb5e1becb794-20191030095800

@wjl1619
Copy link
Member

wjl1619 commented Nov 12, 2019

verified on version: 5.6.29-dble-9.9.9.9-1dc8981d64a9d3930088109f57d5cbd1336863de-20191111090514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolve problem has been fixed by developer
Projects
None yet
Development

No branches or pull requests

4 participants