You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Jared Stewart (JIRA)" <ji...@apache.org> on 2016/09/29 18:47:21 UTC
[jira] [Comment Edited] (GEODE-1907) QueryDataFunction does not add
LIMIT clause if space is missing after FROM clause
[ https://issues.apache.org/jira/browse/GEODE-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15533654#comment-15533654 ]
Jared Stewart edited comment on GEODE-1907 at 9/29/16 6:47 PM:
---------------------------------------------------------------
I was unable to reproduce:
{code}
gfsh>query --region=regionA --query="select * from /regionA"
Result : true
startCount : 0
endCount : 20
Rows : 3
Result
------
3
2
1
NEXT_STEP_NAME : END
gfsh>query --region=regionA --query="select * from /regionA limit 2"
Result : true
startCount : 0
endCount : 20
Rows : 2
Result
------
3
1
NEXT_STEP_NAME : END
gfsh>query --region=regionA --query="select * from/regionA limit 2"
Result : true
startCount : 0
endCount : 20
Rows : 2
Result
------
3
1
NEXT_STEP_NAME : END
{code}
The query without a space after FROM also worked properly in pulse as well.
was (Author: jstewart):
I was unable to reproduce:
{code}
gfsh>query --region=regionA --query="select * from /regionA"
Result : true
startCount : 0
endCount : 20
Rows : 3
Result
------
3
2
1
NEXT_STEP_NAME : END
gfsh>query --region=regionA --query="select * from /regionA limit 2"
Result : true
startCount : 0
endCount : 20
Rows : 2
Result
------
3
1
NEXT_STEP_NAME : END
gfsh>query --region=regionA --query="select * from/regionA limit 2"
Result : true
startCount : 0
endCount : 20
Rows : 2
Result
------
3
1
NEXT_STEP_NAME : END
{code}
The query without a space after FROM worked properly in pulse as well.
> QueryDataFunction does not add LIMIT clause if space is missing after FROM clause
> ---------------------------------------------------------------------------------
>
> Key: GEODE-1907
> URL: https://issues.apache.org/jira/browse/GEODE-1907
> Project: Geode
> Issue Type: Bug
> Components: management, querying
> Reporter: Kirk Lund
> Assignee: Jared Stewart
> Priority: Minor
>
> Apparently "SELECT * FROM/MyRegion" is a valid query in Geode, however if this query is used from GFSH or Pulse, then QueryDataFunction will fail to add a LIMIT clause because there is no space between FROM and the region name.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)