You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Sahil Takiar (JIRA)" <ji...@apache.org> on 2018/10/29 20:06:00 UTC
[jira] [Commented] (IMPALA-7777) Fail queries where the sum of
offset and limit exceed the max value of int64
[ https://issues.apache.org/jira/browse/IMPALA-7777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16667679#comment-16667679 ]
Sahil Takiar commented on IMPALA-7777:
--------------------------------------
An example query is:
{code:java}
select int_col from functional.alltypes order by 1 limit 9223372036854775800 offset 9223372036854775800;{code}
The exception thrown by Impala is:
{code:java}
row-batch.h:334] Check failed: dest <= src (0 vs. -8)
{code}
> Fail queries where the sum of offset and limit exceed the max value of int64
> ----------------------------------------------------------------------------
>
> Key: IMPALA-7777
> URL: https://issues.apache.org/jira/browse/IMPALA-7777
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 2.10.0, Impala 2.11.0, Impala 3.0, Impala 2.12.0
> Reporter: Sahil Takiar
> Assignee: Sahil Takiar
> Priority: Blocker
>
> A follow up to IMPALA-5004. We should prevent users from running queries where the sum of the offset and limit exceeds some threshold (e.g. {{Long.MAX_VALUE}}). If a user tries to run this query the impalad will crash, so we should reject queries that exceed the threshold.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org