[MDEV-14924] Over 180 million records that we could not get a number data. Created: 2018-01-11  Updated: 2018-02-05

Status: Open
Project: MariaDB Server
Component/s: Data Definition - Alter Table
Affects Version/s: 5.5.55-galera, 10.2.12
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Yutaka Kubota Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Environment:

CentOS7, Fedora27,



 Description   

Table
A int(12)
B int(12)
C int(12)
A varchar(100)

I made table that inserted over 180 million(180,096,936) records. And I executed follow SQL language.

select C, A from table order by C, A ASC;
Value C is all "0". However, all C value contained number without 0.
By the way, Over 170 million(170,716,433) record that we can get true value from the table.

I confirmed Aria, MyISAM, InnoDB, The problem was happened. It not seem to relation database format. I guess just bug of the MariaDB.

If you need test data. I send CSV file contain over 180 million lines. Please let me know.



 Comments   
Comment by Elena Stepanova [ 2018-01-13 ]

Please,

  • paste the output of SHOW CREATE TABLE <tablename> and SHOW INDEX IN <tablename>;
  • paste the example of the wrong results that you are getting (you don't need to paste 18M rows, a few ones that show wrong values will do);
  • clarify how ALTER TABLE is involved (since you set it in the Component field);
  • attach your cnf files;
  • and yes, please upload your test data to ftp.askmonty.org/private.
Comment by Yutaka Kubota [ 2018-01-16 ]

Thank you for replying. And Sorry for late reply. I had caught a cold and not to confirm your message during a few days.
*

  • paste the output of SHOW CREATE TABLE <tablename> and SHOW INDEX IN <tablename>;**

I put mysqldump data on my server. Please get it from my server. "word" table is over 180M records.
here is download URL
http://www.qurataro.com/wikipedia_20170601.sql.bz2

  • paste the example of the wrong results that you are getting (you don't need to paste 18M rows, a few ones that show wrong values will do);
    *
    select C, A from table order by C, A ASC;
    Case : 170M records(success)
    1,4
    1,20
    1,3
    Case : 180M records(wrong)
    1,0
    1,0
    1,0
  • attach your cnf files;*
    I use default setting of cnf files.(my.cnf and under my.cnf.d folder) I don't change it.
Comment by Elena Stepanova [ 2018-01-24 ]

Thanks. So, I assume the table is `word`, but which column in your example is `C` and which is `A`?
I tried several variations, but I'm not getting the result that you've described. Also, the table structure is different there, at least INT columns are INT(8) and not INT(12) as you described. Is it possible that you mixing results and expectations from different instances?

Another thing hints at that – this cannot be right (or cannot be success):

select C, A from table order by C, A ASC;
1,4
1,20
1,3

The result is not ordered by A here as it should.

Comment by Yutaka Kubota [ 2018-01-30 ]

sorry, I ought to write real value name, And sorry for late reply.

select subword_num, word_num from word order by subword_num, word_num ASC;
TRUE
1,4
1,20
1,3


FALSE
1,0
1,0
1,0

Generated at Thu Feb 08 08:17:20 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.