[ 
https://issues.apache.org/jira/browse/IMPALA-11500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17582076#comment-17582076
 ] 

ASF subversion and git services commented on IMPALA-11500:
----------------------------------------------------------

Commit d7ecc111492b77e65fc103b119bfd1d5f09af65c in impala's branch 
refs/heads/master from LPL
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=d7ecc1114 ]

IMPALA-11500: Fix Impalad crashed in ParquetBoolDecoder::SkipValues when 
num_values is 0

Fix Impalad crashed in the method ParquetBoolDecoder::SkipValues when
the parameter 'num_values' is 0. The function should tolerate that the
'num_values' is 0 values.

Testing:
 - Add e2e tests

Change-Id: I8c4c5a4dff9e9e75913c7b524b4ae70967febb37
Reviewed-on: http://gerrit.cloudera.org:8080/18854
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Impalad crashed in the ParquetBoolDecoder::SkipValues when num_values is 0
> --------------------------------------------------------------------------
>
>                 Key: IMPALA-11500
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11500
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: LiPenglin
>            Priority: Major
>
> {code:java}
> create table parq_tbl (
>   s string,
>   i int,
>   b boolean,
>   bi bigint,
>   ts timestamp,
>   dt date,
>   dc decimal(9, 3)
> ) stored as parquet;
> insert into
>   parq_tbl
> values
>   ( "abc", 3, true, NULL, "1970-01-03 09:11:22", NULL, 56.34),
>   ( "def", NULL, false, NULL, "1969-12-29 14:45:59", DATE "1969-01-01", 
> -10.0),
>   ( "ghij", 1, NULL, 123456789000000, "1970-01-01", DATE "1970-12-31", NULL),
>   ( NULL, 0, NULL, 234567890000001, NULL, DATE "1971-01-01", NULL),
>   (NULL, NULL, NULL, NULL, NULL, NULL, NULL),
>   (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
> select * from parq_tbl where s is not null;
>  
> Caught exception [Errno 104] Connection reset by peer, type=<class 
> 'socket.error'> in GetOperationStatus. 
> Socket error 104: [Errno 104] Connection reset by peer
> {code}
> parquet-bool-decoder.cc:70] 9344fdd0e7f753fc:f1fb769e00000001] Check failed: 
> num_values > 0 (0 vs. 0)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to