mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 10:33:27 +08:00
Use the proper error code for corrupt compressed array (#6943)
Currently we use elog() which has a wrong error code XX000.
This commit is contained in:
parent
550977d621
commit
1d7bd07ba8
@ -368,8 +368,7 @@ tsl_array_decompression_iterator_from_datum_forward(Datum compressed_array, Oid
|
||||
|
||||
Assert(compressed_array_header->compression_algorithm == COMPRESSION_ALGORITHM_ARRAY);
|
||||
|
||||
if (element_type != compressed_array_header->element_type)
|
||||
elog(ERROR, "trying to decompress the wrong type");
|
||||
CheckCompressedData(element_type == compressed_array_header->element_type);
|
||||
|
||||
return array_decompression_iterator_alloc_forward(&si,
|
||||
compressed_array_header->element_type,
|
||||
|
@ -1596,8 +1596,8 @@ group by 2, 3 order by 1 desc
|
||||
count | bulk_result | rowbyrow_result
|
||||
-------+-------------+-----------------
|
||||
18 | true | true
|
||||
14 | XX001 | XX001
|
||||
7 | 08P01 | 08P01
|
||||
15 | XX001 | XX001
|
||||
8 | 08P01 | 08P01
|
||||
2 | 3F000 | 3F000
|
||||
1 | 22021 | 22021
|
||||
1 | false | false
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user