[JBoss JIRA] (TEIID-5223) Problem with union aliasing when bind variables used
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5223?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-5223.
-----------------------------------
Fix Version/s: (was: 10.x)
Resolution: Out of Date
Thanks for following up Mike.
> Problem with union aliasing when bind variables used
> ----------------------------------------------------
>
> Key: TEIID-5223
> URL: https://issues.jboss.org/browse/TEIID-5223
> Project: Teiid
> Issue Type: Bug
> Affects Versions: 9.3.5
> Reporter: Mike Higgins
> Assignee: Steven Hawkins
>
> When a query with a union, function call, and bind variables is issued in 9.3.5, an alias is not applied correctly. When the same query is run with an explicit constraint list, it works. It works in both cases in Teiid 9.3.4.
> Query is:
> SELECT Substances."SUB_ID",
> NADALM_FUNCS.MOLFILE(Substances."XCTAB") "MOLFILE"
> FROM (
> SELECT NADALM.SUBSTANCE."SUB_ID",
> NADALM.SUBSTANCE."CTAB" "XCTAB",
> NADALM_FUNCS.MOLFILE(NADALM.SUBSTANCE."CTAB") "MOLFILE"
> FROM nadalm.substance
> UNION ALL
> SELECT D360_DC.DESIGN_COMPOUND."DC_ID" "SUB_ID",
> D360_DC.DESIGN_COMPOUND."CTAB" "XCTAB",
> NADALM_FUNCS.MOLFILE(D360_DC.DESIGN_COMPOUND."CTAB") "MOLFILE"
> FROM d360_dc.design_compound) Substances
> WHERE (Substances."SUB_ID" in (?, ?, ?, ?, ?, ?, ?,?, ?, ?))
> Generated SQL with error is:
> SELECT v_0.SUB_ID, NADAL_CERTARA.MOLFILE(v_0.c_1) FROM
> (SELECT g_1."SUB_ID" AS c_0, g_1."CTAB" AS c_1 FROM "NADAL_CERTARA"."SUBSTANCE" g_1 WHERE g_1."SUB_ID" IN (?, ?, ?, ?, ?, ?, ?,?, ?, ?)
> UNION ALL
> SELECT g_0."DC_ID" AS c_0, g_0."CTAB" AS c_1 FROM "NADAL_CERTARA"."DESIGN_COMPOUND" g_0 WHERE g_0."DC_ID" IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?))) v_0
> Note that top branch references v_0.Sub_id, which is not legal (should be c_0).
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months
[JBoss JIRA] (TEIID-5223) Problem with union aliasing when bind variables used
by Mike Higgins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5223?page=com.atlassian.jira.plugin... ]
Mike Higgins commented on TEIID-5223:
-------------------------------------
Please close, I cannot reproduce this in version 10.1.
> Problem with union aliasing when bind variables used
> ----------------------------------------------------
>
> Key: TEIID-5223
> URL: https://issues.jboss.org/browse/TEIID-5223
> Project: Teiid
> Issue Type: Bug
> Affects Versions: 9.3.5
> Reporter: Mike Higgins
> Assignee: Steven Hawkins
> Fix For: 10.x
>
>
> When a query with a union, function call, and bind variables is issued in 9.3.5, an alias is not applied correctly. When the same query is run with an explicit constraint list, it works. It works in both cases in Teiid 9.3.4.
> Query is:
> SELECT Substances."SUB_ID",
> NADALM_FUNCS.MOLFILE(Substances."XCTAB") "MOLFILE"
> FROM (
> SELECT NADALM.SUBSTANCE."SUB_ID",
> NADALM.SUBSTANCE."CTAB" "XCTAB",
> NADALM_FUNCS.MOLFILE(NADALM.SUBSTANCE."CTAB") "MOLFILE"
> FROM nadalm.substance
> UNION ALL
> SELECT D360_DC.DESIGN_COMPOUND."DC_ID" "SUB_ID",
> D360_DC.DESIGN_COMPOUND."CTAB" "XCTAB",
> NADALM_FUNCS.MOLFILE(D360_DC.DESIGN_COMPOUND."CTAB") "MOLFILE"
> FROM d360_dc.design_compound) Substances
> WHERE (Substances."SUB_ID" in (?, ?, ?, ?, ?, ?, ?,?, ?, ?))
> Generated SQL with error is:
> SELECT v_0.SUB_ID, NADAL_CERTARA.MOLFILE(v_0.c_1) FROM
> (SELECT g_1."SUB_ID" AS c_0, g_1."CTAB" AS c_1 FROM "NADAL_CERTARA"."SUBSTANCE" g_1 WHERE g_1."SUB_ID" IN (?, ?, ?, ?, ?, ?, ?,?, ?, ?)
> UNION ALL
> SELECT g_0."DC_ID" AS c_0, g_0."CTAB" AS c_1 FROM "NADAL_CERTARA"."DESIGN_COMPOUND" g_0 WHERE g_0."DC_ID" IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?))) v_0
> Note that top branch references v_0.Sub_id, which is not legal (should be c_0).
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months
[JBoss JIRA] (TEIID-5295) Comparisons of timestamps don't work correctly for MongoDB
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5295?page=com.atlassian.jira.plugin... ]
Work on TEIID-5295 started by Steven Hawkins.
---------------------------------------------
> Comparisons of timestamps don't work correctly for MongoDB
> ----------------------------------------------------------
>
> Key: TEIID-5295
> URL: https://issues.jboss.org/browse/TEIID-5295
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors
> Affects Versions: 8.12.11.6_4
> Reporter: Jan Martiska
> Assignee: Steven Hawkins
>
> Examples of queries which don't behave as expected when running against MongoDB:
> {noformat}
> SELECT BQT1.SmallA.TimeValue FROM BQT1.SmallA WHERE BQT1.SmallA.TimeValue > '17:00:00'
> {noformat}
> returns ALL timevalues which are not null
> {noformat}
> SELECT BQT1.SmallA.TimeValue FROM BQT1.SmallA WHERE BQT1.SmallA.TimeValue < '17:00:00'
> {noformat}
> returns NO timevalues even though there are some less than 17:00
> {noformat}
> SELECT BQT1.SmallA.TimeValue FROM BQT1.SmallA WHERE BQT1.SmallA.TimeValue = '15:00:00'
> {noformat}
> returns nothing
> {noformat}
> SELECT BQT1.SmallA.IntKey FROM BQT1.SmallA WHERE BQT1.SmallA.TimeValue IN (convert('05:00:00', time), convert('15:00:00', time))
> {noformat}
> returns nothing
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months
[JBoss JIRA] (TEIID-5293) Add implicit partitioning of joins to non-multisource partitioning as well
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-5293?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-5293.
-----------------------------------
Fix Version/s: 10.3
10.1.3
10.0.5
10.2.1
Resolution: Done
This enhancement enables implicit partition wise join when the virtual model has the property implicit_partition.columnName set to the partitioning column name.
This also fixes issues with the partitioning info created after the decomposition, thus it's being checked into the support branches.
> 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
> Fix For: 10.3, 10.1.3, 10.0.5, 10.2.1
>
>
> 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-5297) With MongoDB, null is returned from timestamp functions if the same function is part of WHERE clause
by Jan Martiska (JIRA)
Jan Martiska created TEIID-5297:
-----------------------------------
Summary: With MongoDB, null is returned from timestamp functions if the same function is part of WHERE clause
Key: TEIID-5297
URL: https://issues.jboss.org/browse/TEIID-5297
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.12.11.6_4
Reporter: Jan Martiska
Assignee: Steven Hawkins
For example:
{noformat}
SELECT timestampvalue, second(timestampvalue) as sec FROM bqt1.hugeA WHERE second(timestampvalue) >= 0
{noformat}
This will correctly select rows where {{second(timestampvalue) >= 0}}, but the {{sec}} column in the result will contain only nulls.
If I remove the WHERE clause:
{noformat}
SELECT timestampvalue, second(timestampvalue) as sec FROM bqt1.hugeA;
{noformat}
Then the {{sec}} column will be computed correctly.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months