[JBoss JIRA] (TEIID-2371) Provide a callback when there are no results for a query incase of asynchronous queries
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-2371?page=com.atlassian.jira.plugin... ]
Steven Hawkins commented on TEIID-2371:
---------------------------------------
> So as beforeNextExecution gets called in between the executions this doesn't perfectly identify the empty result set.
A "has results flag" or a counter of the rows processed in onRow will identify if the results were empty when beforeNextExecution is called. You could even use the ResultSet.getRow() call - keeping in mind that it have a dummy row for each execution that identifies the end of results.
None of these approaches would fail to detect empty results.
> Provide a callback when there are no results for a query incase of asynchronous queries
> ---------------------------------------------------------------------------------------
>
> Key: TEIID-2371
> URL: https://issues.jboss.org/browse/TEIID-2371
> Project: Teiid
> Issue Type: Feature Request
> Reporter: Vineela Gampa
> Assignee: Steven Hawkins
> Attachments: EmptyResultSetAsyncTest.java, ExecuteAsyncContinously.java
>
>
> When a query doesn,t return results , please provide a callback method indicating end of results.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 11 months
[JBoss JIRA] (TEIID-2371) Provide a callback when there are no results for a query incase of asynchronous queries
by Vineela Gampa (JIRA)
[ https://issues.jboss.org/browse/TEIID-2371?page=com.atlassian.jira.plugin... ]
Vineela Gampa commented on TEIID-2371:
--------------------------------------
Hi Steve,
Please take a look at com.ca.chorus.db.async.ExecuteAsyncContinously.continuouslyWhenData(). We have a feature called autoRefresh where the data is refreshed on UI every minute. So we dont close the statement until the user turns off autoRefresh(thats when we cancel the qeury and close the statement).
In my testcase beforeNextExecution gets called in between the executions.
when the query is getting executed -
1) onRow gets called
2)beforeNextExecution gets called between the executions
2) next continous execution starts - on row gets triggered
So as beforeNextExecution gets called in between the executions this doesn't perfectly identify the empty result set.
To identify emptyResultset this is the approach iam planning on - if on row is not called and beforeNextExecution gets called(for continous executions)/onComplete(incase of noncontinous) , then i treat it as an empty resultset. Do you think this would fail in any scenario ?
> Provide a callback when there are no results for a query incase of asynchronous queries
> ---------------------------------------------------------------------------------------
>
> Key: TEIID-2371
> URL: https://issues.jboss.org/browse/TEIID-2371
> Project: Teiid
> Issue Type: Feature Request
> Reporter: Vineela Gampa
> Assignee: Steven Hawkins
> Attachments: EmptyResultSetAsyncTest.java, ExecuteAsyncContinously.java
>
>
> When a query doesn,t return results , please provide a callback method indicating end of results.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 11 months
[JBoss JIRA] (TEIID-2373) Strict LIMITs are not properly enforced
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-2373?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-2373.
-----------------------------------
Resolution: Done
Corrected the node constant is_strict to is_non_strict to reflect a safe default and updated the pushing logic to copy the flag from the parent in all cases.
> Strict LIMITs are not properly enforced
> ---------------------------------------
>
> Key: TEIID-2373
> URL: https://issues.jboss.org/browse/TEIID-2373
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 7.6
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 8.3
>
>
> The notion of a strict limit introduced by TEIID-1806 - is not strictly enforced when an unordered limit is first pushed across a union. The result may be fewer rows than expected if the limit is then pushed across a select node.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 11 months
[JBoss JIRA] (TEIID-2373) Strict LIMITs are not properly enforced
by Steven Hawkins (JIRA)
Steven Hawkins created TEIID-2373:
-------------------------------------
Summary: Strict LIMITs are not properly enforced
Key: TEIID-2373
URL: https://issues.jboss.org/browse/TEIID-2373
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 7.6
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 8.3
The notion of a strict limit introduced by TEIID-1806 - is not strictly enforced when an unordered limit is first pushed across a union. The result may be fewer rows than expected if the limit is then pushed across a select node.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 11 months