[MCOL-4802] information_schema.columnstore_files contains NULL for both FILE_SIZE and COMPRESSED_FILE_SIZE Created: 2021-07-06  Updated: 2021-07-08  Resolved: 2021-07-07

Status: Closed
Project: MariaDB ColumnStore
Component/s: ExeMgr, PrimProc
Affects Version/s: 6.1.1
Fix Version/s: 6.1.1

Type: Bug Priority: Major
Reporter: Roman Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2021-9

 Description   

Consider the example:

create table c1(i int)engine=columnstore;
insert into c1 values (42);
 
MariaDB [test]> select * from information_schema.columnstore_files;
+-----------+------------+--------------+--------------------------------------------------------------------------------+-----------+----------------------+
| OBJECT_ID | SEGMENT_ID | PARTITION_ID | FILENAME                                                                       | FILE_SIZE | COMPRESSED_DATA_SIZE |
+-----------+------------+--------------+--------------------------------------------------------------------------------+-----------+----------------------+
|      3001 |          0 |            0 | /var/lib/columnstore/data1/000.dir/000.dir/011.dir/185.dir/000.dir/FILE000.cdf |      NULL |                 NULL |
+-----------+------------+--------------+--------------------------------------------------------------------------------+-----------+----------------------+

get_file_sizes() function pushes char[XXX] into ByteStream. BS incorrectly picks the operator>>() method for the char[XXX]. This causes WE to return an error deserializing from BS. get_file_sizes() logic doesn't take WE return code into account and siliently returns success setting FILE_SIZE and COMPRESSED_DATA_SIZE to 0.



 Comments   
Comment by Roman [ 2021-07-06 ]

Plz review.

Comment by Daniel Lee (Inactive) [ 2021-07-07 ]

build verified: 6.1.1 ( #2738 )

Generated at Thu Feb 08 02:53:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.