Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1131091

Summary: Unexpected exception for correct SQL query
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Juraj Duráni <jdurani>
Component: TeiidAssignee: Van Halbert <vhalbert>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: vhalbert
Target Milestone: ---   
Target Release: 6.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-25 13:24:07 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 Juraj Duráni 2014-08-18 13:02:22 UTC
Description of problem:
Query ends with exception. Same query for MariaDB database returns correct result but Teiid throws an exception.

Version-Release number of selected component (if applicable):


How reproducible:
Source databse - MariaDB 5.5
VDB view model - BQT1
  tables: smalla - 
  `INTKEY` integer primary key,
  `STRINGKEY` varing(10),
  `INTNUM` integer,
  `STRINGNUM` varing(10),
  `FLOATNUM` real,
  `LONGNUM` bigint,
  `DOUBLENUM` double,
  `BYTENUM` smallint,
  `DATEVALUE` date,
  `TIMEVALUE` time,
  `TIMESTAMPVALUE` timestamp,
  `BOOLEANVALUE` boolean,
  `CHARVALUE` character(1),
  `SHORTVALUE` smallint,
  `BIGINTEGERVALUE` bigint,
  `BIGDECIMALVALUE` decimal(10,0),
  `OBJECTVALUE` bytea

SQL qeuery - SELECT A.INTKEY, A.TIMESTAMPVALUE, A.FLOATNUM, (SELECT MIN(TIMESTAMPVALUE) FROM BQT1.SMALLA AS B WHERE (FLOATNUM >= 9) AND (B.INTKEY = A.INTKEY)) FROM BQT1.SMALLA AS A ORDER BY A.INTKEY

Actual results:
Query ends with exception - TEIID30504 Remote org.teiid.core.TeiidProcessingException: TEIID30504 Source: Unexpected exception while translating results: Error

Expected results:
No exception

Additional info:
excption stack trace and server log in attachment

Comment 1 Van Halbert 2014-08-25 13:24:07 UTC
The MySQL JDBC driver should be used when querying MariaDB.  This is the recommended driver to use.   Therefore, this BZ can be closed.

Comment 2 JBoss JIRA Server 2014-08-25 13:47:44 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3090 to Resolved

Comment 3 JBoss JIRA Server 2014-10-21 13:17:18 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3090 to Closed