Bug 1530236

Summary: Osisoft translator - correlated subquery on HAVING clause fails
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Andrej Smigala <asmigala>
Component: Teiid, DocumentationAssignee: David Le Sage <dlesage>
Status: CLOSED WONTFIX QA Contact: Andrej Smigala <asmigala>
Severity: high Docs Contact:
Priority: high    
Version: 6.4.0CC: blafond, drieden, gjospin, jolee, jschatte, jstastny, thauser, vhalbert
Target Milestone: CR5Keywords: Documentation
Target Release: 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Running a query with a correlated subquery in a HAVING clause fails on the data source with an exception. This is due to an issue with the Osisoft PI data source.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-19 04:34:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrej Smigala 2018-01-02 10:54:35 UTC
Running a query with a correlated subquery in a HAVING clause, such as

SELECT INTKEY, STRINGKEY FROM BQT1.SMALLA AS A WHERE NOT (INTKEY IN (10)) GROUP BY INTKEY, STRINGKEY HAVING INTKEY = (SELECT MIN(STRINGKEY) FROM BQT1.SMALLA AS B WHERE A.INTKEY = B.INTKEY) 

fails on the datasource with

    com.osisoft.rdsa.RdsaException: [PIOLEDBENT] HAVING condition cannot be nonaggregate.

This seems to be an issue on the Osisoft PI datasource side, as running the query directly against the datasource produces the same failure.

Comment 2 Andrej Smigala 2018-01-09 14:29:25 UTC
You're right, but I think it's still worth documenting as a known issue.

Comment 7 David Le Sage 2018-02-19 04:12:04 UTC
Release note drafted.

Comment 8 David Le Sage 2018-02-19 04:34:33 UTC
Release note added.
Engineering aspect set to WONTFIX for this release.