Bug #87658 | "ndb_restore --print-data" can't converts enum data. | ||
---|---|---|---|
Submitted: | 4 Sep 2017 14:12 | Modified: | 4 Apr 2019 6:04 |
Reporter: | Yoshiaki Yamasaki | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S4 (Feature request) |
Version: | 7.5.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | MySQL Cluster, ndb_restore |
[4 Sep 2017 14:12]
Yoshiaki Yamasaki
[4 Sep 2017 16:36]
Yoshiaki Yamasaki
[Note] When we copy data from MySQL Cluster to MySQL(InnoDB), we need to convert enum data as follows. It is inconvenient. LOAD DATA INFILE '/home/mysql/mysqlc/csvdata/countrylanguage.txt' INTO TABLE world.countrylanguage(CountryCode, Language, @var3, Percentage) SET IsOfficial = (CASE @var3 WHEN '0x01' THEN 'T' WHEN '0x02' THEN 'F' ELSE 'ERROR' END) ;
[5 Sep 2017 1:03]
Yoshiaki Yamasaki
I have another Suggested fix. I think previous Suggested fix is better than this plan. However, this plan can achieve the purpose. I mean "the purpose" is transfer data from MySQL Cluster to InnoDB easily. [Another Suggested fix] LOAD DATA INFILE can use numeric values for ENUM.
[4 Apr 2019 6:04]
MySQL Verification Team
Hello Yamasaki-San, Thank you for the feature request! regards, Umesh