[root@s0 /]# cpimport mytest tpp_white_list -E '"' -s "," /data/list.csv
|
Locale = en_US.UTF-8Column delimiter : ,
|
Enclosed by Character : "
|
|
Using table OID 3002 as the default JOB ID
|
Input file(s) will be read from : /
|
Job description file : /var/log/mariadb/columnstore/data/bulk/tmpjob/3002_D20220810_T175103_S221218_Job_3002.xml
|
Log file for this job: /var/log/mariadb/columnstore/cpimport/Job_3002.log
|
2022-08-10 17:51:03 (1286) INFO : successfully loaded job file /var/log/mariadb/columnstore/data/bulk/tmpjob/3002_D20220810_T175103_S221218_Job_3002.xml
|
2022-08-10 17:51:03 (1286) INFO : Job file loaded, run time for this step : 0.0176101 seconds
|
2022-08-10 17:51:03 (1286) INFO : PreProcessing check starts
|
2022-08-10 17:51:03 (1286) INFO : input data file /data/list.csv
|
2022-08-10 17:51:03 (1286) INFO : PreProcessing check completed
|
2022-08-10 17:51:03 (1286) INFO : preProcess completed, run time for this step : 0.0876989 seconds
|
2022-08-10 17:51:03 (1286) INFO : No of Read Threads Spawned = 1
|
2022-08-10 17:51:03 (1286) INFO : No of Parse Threads Spawned = 3
|
2022-08-10 17:51:03 (1286) INFO : For table mytest.tpp_white_list: 3094247 rows processed and 3094247 rows inserted.
|
2022-08-10 17:51:04 (1286) INFO : Bulk load completed, total run time : 1.10579 seconds
|
|
[root@s0 /]# mariadb mytest
|
Reading table information for completion of table and column names
|
You can turn off this feature to get a quicker startup with -A
|
|
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
Your MariaDB connection id is 15
|
Server version: 10.9.2-MariaDB-log MariaDB Server
|
|
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
MariaDB [mytest]> WITH
|
-> temp1 AS (select 1 as num,'aa1' as name, 111 as VALUE union all
|
-> select 2 as num,'aa2' as name, 112 as VALUE union all
|
-> select 3 as num,'aa3' as name, 113 as VALUE union all
|
-> select 4 as num, NULL as name, 'MDCDX2' as VALUE union all
|
-> select 5 as num, null as name, 115 as VALUE union all
|
-> select 4 as num, "" as name, null as VALUE union all
|
-> select 5 as num, null as name, null as VALUE union all
|
-> select 4 as num,'*1068' as name, '99D01' as VALUE union all
|
-> select 5 as num,'*1554' as NAME, '99D01' as VALUE union all
|
-> select 4 as num,'0063001' as NAME, '99D01' as VALUE
|
-> )
|
-> SELECT COUNT(1)
|
-> from temp1 a
|
-> where exists (select 1 from tpp_white_list b
|
-> WHERE b.TABLE_NAME = 'IF001'
|
-> AND (b.COLUMN_NAME = 'プロブレム1セット' OR b.COLUMN_NAME ='プロブレム2セット')
|
-> and ifnull(a.name,'') = ifnull(b.code,'')
|
-> AND ifnull(a.value,'') = ifnull(b.cs_code,'')
|
-> );
|
+----------+
|
| COUNT(1) |
|
+----------+
|
| 3 |
|
+----------+
|
1 row in set (0.562 sec)
|
|