[JBoss JIRA] (TEIID-5293) Add implicit partitioning of joins to non-multisource partitioning as well
by Steven Hawkins (JIRA)
Steven Hawkins created TEIID-5293:
-------------------------------------
Summary: Add implicit partitioning of joins to non-multisource partitioning as well
Key: TEIID-5293
URL: https://issues.jboss.org/browse/TEIID-5293
Project: Teiid
Issue Type: Enhancement
Components: Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Similar to the existing flag controlling multi-source behavior, we should offer the option to make non-multisource partitioned view joins be performed partition-wise implicitly. This could be another flag or even a query hint.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months
[JBoss JIRA] (TEIID-5290) NOW() function returns the same value for each call in BEGIN...END block
by dalex dalex (JIRA)
[ https://issues.jboss.org/browse/TEIID-5290?page=com.atlassian.jira.plugin... ]
dalex dalex commented on TEIID-5290:
------------------------------------
[~shawkins] thx a lot for the quick fix!
> NOW() function returns the same value for each call in BEGIN...END block
> ------------------------------------------------------------------------
>
> Key: TEIID-5290
> URL: https://issues.jboss.org/browse/TEIID-5290
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 10.1
> Environment: teiid-10.1.0 on WildFly Full 11.0.0.Final (WildFly Core 3.0.8.Final)
> Reporter: dalex dalex
> Assignee: Steven Hawkins
> Fix For: 10.2, 10.1.3, 10.0.5
>
>
> Run the following queries:
> {code:sql}
> BEGIN
> declare timestamp ts1 = select now();
> DECLARE integer c = 20000;
> WHILE (c > 0)
> BEGIN
> c= c-1;
> END
> declare timestamp ts2 = select now();
> select ts1, ts2;
> END ;;
> {code}
> and
> {code:sql}
> BEGIN
> DECLARE integer c = 20000;
> create local temporary table #tem(ts timestamp);
> WHILE (c > 0)
> BEGIN
> INSERT INTO #tem VALUES((select NOW()));
> c= c-1;
> END
> select * from #tem;
> END ;;
> {code}
> NOW() function returns the same value for each call in BEGIN...END block and it doesn't matter if it is atomic or not.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months