You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tajo.apache.org by "Hyunsik Choi (JIRA)" <ji...@apache.org> on 2013/12/06 15:04:35 UTC
[jira] [Resolved] (TAJO-388) limit clause does not work properly
[ https://issues.apache.org/jira/browse/TAJO-388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyunsik Choi resolved TAJO-388.
-------------------------------
Resolution: Fixed
Fix Version/s: 0.8-incubating
committed this patch to master. Thank you for the review.
> limit clause does not work properly
> -----------------------------------
>
> Key: TAJO-388
> URL: https://issues.apache.org/jira/browse/TAJO-388
> Project: Tajo
> Issue Type: Bug
> Components: planner/optimizer
> Reporter: Jinho Kim
> Assignee: Hyunsik Choi
> Fix For: 0.8-incubating
>
> Attachments: TAJO-388.patch, TAJO-388_2.patch
>
>
> The schema does not match.
> {noformat}
> Query: select l_returnflag from lineitem_100 limit 10
>
> Distributed Query Plan
> -------------------------------------------------------------------------------
> Execution Block Graph (TERMINAL - eb_1386296972441_0012_000003)
> -------------------------------------------------------------------------------
> |-eb_1386296972441_0012_000003
> |-eb_1386296972441_0012_000002
> |-eb_1386296972441_0012_000001
> -------------------------------------------------------------------------------
> =======================================================
> Block Id: eb_1386296972441_0012_000001 [LEAF]
> =======================================================
> [Outgoing]
> [q_1386296972441_0012] 1 => 2 (type=HASH_PARTITION, key=, num=1)
> Limit (10)
> "out schema: {lineitem_100.l_returnflag (TEXT(0))}
> "in schema: {lineitem_100.l_returnflag (TEXT(0))}
> "Scan" : {"table":"lineitem_100", "target list": lineitem_100.l_returnflag (TEXT(0)),
> "out schema": {lineitem_100.l_returnflag (TEXT(0))}
> "in schema": {lineitem_100.l_orderkey (INT8(0)),lineitem_100.l_partkey (INT8(0)),lineitem_100.l_suppkey (INT8(0)),lineitem_100.l_linenumber (INT8(0)),lineitem_100.l_quantity (FLOAT8(0)),lineitem_100.l_extendedprice (FLOAT8(0)),lineitem_100.l_discount (FLOAT8(0)),lineitem_100.l_tax (FLOAT8(0)),lineitem_100.l_returnflag (TEXT(0)),lineitem_100.l_linestatus (TEXT(0)),lineitem_100.l_shipdate (TEXT(0)),lineitem_100.l_commitdate (TEXT(0)),lineitem_100.l_receiptdate (TEXT(0)),lineitem_100.l_shipinstruct (TEXT(0)),lineitem_100.l_shipmode (TEXT(0)),lineitem_100.l_comment (TEXT(0))}
> =======================================================
> Block Id: eb_1386296972441_0012_000002 [ROOT]
> =======================================================
> [Incoming]
> [q_1386296972441_0012] 1 => 2 (type=HASH_PARTITION, key=, num=1)
> [Outgoing]
> "Projection": {"targets": ["lineitem_100.l_returnflag (TEXT(0))"],
> "out schema": {lineitem_100.l_returnflag (TEXT(0))},
> "in schema": {lineitem_100.l_returnflag (TEXT(0))}}
> Limit (10)
> "out schema: {lineitem_100.l_returnflag (TEXT(0))}
> "in schema: {lineitem_100.l_returnflag (TEXT(0))}
> "Scan" : {"table":"lineitem_100", "target list": lineitem_100.l_returnflag (TEXT(0)),
> "out schema": {lineitem_100.l_returnflag (TEXT(0))}
> "in schema": {lineitem_100.l_orderkey (INT8(0)),lineitem_100.l_partkey (INT8(0)),lineitem_100.l_suppkey (INT8(0)),lineitem_100.l_linenumber (INT8(0)),lineitem_100.l_quantity (FLOAT8(0)),lineitem_100.l_extendedprice (FLOAT8(0)),lineitem_100.l_discount (FLOAT8(0)),lineitem_100.l_tax (FLOAT8(0)),lineitem_100.l_returnflag (TEXT(0)),lineitem_100.l_linestatus (TEXT(0)),lineitem_100.l_shipdate (TEXT(0)),lineitem_100.l_commitdate (TEXT(0)),lineitem_100.l_receiptdate (TEXT(0)),lineitem_100.l_shipinstruct (TEXT(0)),lineitem_100.l_shipmode (TEXT(0)),lineitem_100.l_comment (TEXT(0))}
> =======================================================
> Block Id: eb_1386296972441_0012_000003 [TERMINAL]
> =======================================================
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1#6144)