[JBoss JIRA] (TEIID-3438) Null value returned from BlobImpl getBytes
by Kylin Soong (JIRA)
[ https://issues.jboss.org/browse/TEIID-3438?page=com.atlassian.jira.plugin... ]
Kylin Soong commented on TEIID-3438:
------------------------------------
Thanks, I verified with previous code no NPE, it be solved.
> Null value returned from BlobImpl getBytes
> ------------------------------------------
>
> Key: TEIID-3438
> URL: https://issues.jboss.org/browse/TEIID-3438
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 7.7
> Reporter: Kylin Soong
> Assignee: Steven Hawkins
> Fix For: 8.10.1, 8.11
>
>
> If translator retrieveValue return a empty Blob, the engine will throw NPE as below
> Caused by: java.lang.NullPointerException
> at javax.sql.rowset.serial.SerialBlob.<init>(SerialBlob.java:100)
> at org.teiid.common.buffer.LobManager.persistLob(LobManager.java:226)
> at org.teiid.common.buffer.LobManager.updateReferences(LobManager.java:141)
> at org.teiid.common.buffer.TupleBuffer.addTupleBatch(TupleBuffer.java:203)
> at org.teiid.query.processor.BatchCollector.flushBatchDirect(BatchCollector.java:229)
> at org.teiid.dqp.internal.process.RequestWorkItem$1.flushBatchDirect(RequestWorkItem.java:653)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 8 months
[JBoss JIRA] (TEIID-3439) Add support for aliases with .
by Steven Hawkins (JIRA)
Steven Hawkins created TEIID-3439:
-------------------------------------
Summary: Add support for aliases with .
Key: TEIID-3439
URL: https://issues.jboss.org/browse/TEIID-3439
Project: Teiid
Issue Type: Feature Request
Components: Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
We currently don't allow column or table aliases to contain '.'. This is allowable given a quoted identifier is used. However an early design decision of metamatrix was to relax the rules of naming so that queries against the engine could use quoting (on not) similar to whatever was expected by a given database rather than the engine structure. A lot of resolving and parsing logic will need to change unfortunately to fix this.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 8 months
[JBoss JIRA] (TEIID-3438) Null value returned from BlobImpl getBytes
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3438?page=com.atlassian.jira.plugin... ]
Steven Hawkins resolved TEIID-3438.
-----------------------------------
Resolution: Done
Resolving by returning empty byte arrays. This should be considered for 8.7.x as well.
> Null value returned from BlobImpl getBytes
> ------------------------------------------
>
> Key: TEIID-3438
> URL: https://issues.jboss.org/browse/TEIID-3438
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 7.7
> Reporter: Kylin Soong
> Assignee: Steven Hawkins
> Fix For: 8.10.1, 8.11
>
>
> If translator retrieveValue return a empty Blob, the engine will throw NPE as below
> Caused by: java.lang.NullPointerException
> at javax.sql.rowset.serial.SerialBlob.<init>(SerialBlob.java:100)
> at org.teiid.common.buffer.LobManager.persistLob(LobManager.java:226)
> at org.teiid.common.buffer.LobManager.updateReferences(LobManager.java:141)
> at org.teiid.common.buffer.TupleBuffer.addTupleBatch(TupleBuffer.java:203)
> at org.teiid.query.processor.BatchCollector.flushBatchDirect(BatchCollector.java:229)
> at org.teiid.dqp.internal.process.RequestWorkItem$1.flushBatchDirect(RequestWorkItem.java:653)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 8 months
[JBoss JIRA] (TEIID-3437) Inconsistencies with row count handling
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3437?page=com.atlassian.jira.plugin... ]
Steven Hawkins updated TEIID-3437:
----------------------------------
Fix Version/s: 8.10.1
> Inconsistencies with row count handling
> ---------------------------------------
>
> Key: TEIID-3437
> URL: https://issues.jboss.org/browse/TEIID-3437
> Project: Teiid
> Issue Type: Bug
> Components: Misc. Connectors, Query Engine
> Affects Versions: 8.10
> Reporter: Steven Hawkins
> Assignee: Steven Hawkins
> Fix For: 8.10.1, 8.11
>
>
> With TEIID-3271 we addressed returning all of the update counts from a bulk operation such that the direct JDBC logic was correct. However this left the logic inconsistent with the projectintonode (which could result in invalid rowcount variables) and with the accumulo, solr, and simpledb translators.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 8 months
[JBoss JIRA] (TEIID-3438) Null value returned from BlobImpl getBytes
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3438?page=com.atlassian.jira.plugin... ]
Steven Hawkins updated TEIID-3438:
----------------------------------
Summary: Null value returned from BlobImpl getBytes (was: Engine do not allow empty Blob return)
> Null value returned from BlobImpl getBytes
> ------------------------------------------
>
> Key: TEIID-3438
> URL: https://issues.jboss.org/browse/TEIID-3438
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 7.7
> Reporter: Kylin Soong
> Assignee: Steven Hawkins
> Fix For: 8.10.1, 8.11
>
>
> If translator retrieveValue return a empty Blob, the engine will throw NPE as below
> Caused by: java.lang.NullPointerException
> at javax.sql.rowset.serial.SerialBlob.<init>(SerialBlob.java:100)
> at org.teiid.common.buffer.LobManager.persistLob(LobManager.java:226)
> at org.teiid.common.buffer.LobManager.updateReferences(LobManager.java:141)
> at org.teiid.common.buffer.TupleBuffer.addTupleBatch(TupleBuffer.java:203)
> at org.teiid.query.processor.BatchCollector.flushBatchDirect(BatchCollector.java:229)
> at org.teiid.dqp.internal.process.RequestWorkItem$1.flushBatchDirect(RequestWorkItem.java:653)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 8 months
[JBoss JIRA] (TEIID-3438) Engine do not allow empty Blob return
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3438?page=com.atlassian.jira.plugin... ]
Steven Hawkins updated TEIID-3438:
----------------------------------
Fix Version/s: 8.10.1
8.11
> Engine do not allow empty Blob return
> -------------------------------------
>
> Key: TEIID-3438
> URL: https://issues.jboss.org/browse/TEIID-3438
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 7.7
> Reporter: Kylin Soong
> Assignee: Steven Hawkins
> Fix For: 8.10.1, 8.11
>
>
> If translator retrieveValue return a empty Blob, the engine will throw NPE as below
> Caused by: java.lang.NullPointerException
> at javax.sql.rowset.serial.SerialBlob.<init>(SerialBlob.java:100)
> at org.teiid.common.buffer.LobManager.persistLob(LobManager.java:226)
> at org.teiid.common.buffer.LobManager.updateReferences(LobManager.java:141)
> at org.teiid.common.buffer.TupleBuffer.addTupleBatch(TupleBuffer.java:203)
> at org.teiid.query.processor.BatchCollector.flushBatchDirect(BatchCollector.java:229)
> at org.teiid.dqp.internal.process.RequestWorkItem$1.flushBatchDirect(RequestWorkItem.java:653)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 8 months
[JBoss JIRA] (TEIID-3438) Engine do not allow empty Blob return
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3438?page=com.atlassian.jira.plugin... ]
Steven Hawkins updated TEIID-3438:
----------------------------------
Affects Version/s: 7.7
(was: 8.11)
> Engine do not allow empty Blob return
> -------------------------------------
>
> Key: TEIID-3438
> URL: https://issues.jboss.org/browse/TEIID-3438
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 7.7
> Reporter: Kylin Soong
> Assignee: Steven Hawkins
> Fix For: 8.10.1, 8.11
>
>
> If translator retrieveValue return a empty Blob, the engine will throw NPE as below
> Caused by: java.lang.NullPointerException
> at javax.sql.rowset.serial.SerialBlob.<init>(SerialBlob.java:100)
> at org.teiid.common.buffer.LobManager.persistLob(LobManager.java:226)
> at org.teiid.common.buffer.LobManager.updateReferences(LobManager.java:141)
> at org.teiid.common.buffer.TupleBuffer.addTupleBatch(TupleBuffer.java:203)
> at org.teiid.query.processor.BatchCollector.flushBatchDirect(BatchCollector.java:229)
> at org.teiid.dqp.internal.process.RequestWorkItem$1.flushBatchDirect(RequestWorkItem.java:653)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 8 months
[JBoss JIRA] (TEIID-3438) Engine do not allow empty Blob return
by Steven Hawkins (JIRA)
[ https://issues.jboss.org/browse/TEIID-3438?page=com.atlassian.jira.plugin... ]
Steven Hawkins commented on TEIID-3438:
---------------------------------------
This is actually highlighting a very old bug in BlobImpl getBytes, where it is returning null rather than an empty byte array. That is not expected.
> Engine do not allow empty Blob return
> -------------------------------------
>
> Key: TEIID-3438
> URL: https://issues.jboss.org/browse/TEIID-3438
> Project: Teiid
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: 8.11
> Reporter: Kylin Soong
> Assignee: Steven Hawkins
>
> If translator retrieveValue return a empty Blob, the engine will throw NPE as below
> Caused by: java.lang.NullPointerException
> at javax.sql.rowset.serial.SerialBlob.<init>(SerialBlob.java:100)
> at org.teiid.common.buffer.LobManager.persistLob(LobManager.java:226)
> at org.teiid.common.buffer.LobManager.updateReferences(LobManager.java:141)
> at org.teiid.common.buffer.TupleBuffer.addTupleBatch(TupleBuffer.java:203)
> at org.teiid.query.processor.BatchCollector.flushBatchDirect(BatchCollector.java:229)
> at org.teiid.dqp.internal.process.RequestWorkItem$1.flushBatchDirect(RequestWorkItem.java:653)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 8 months
[JBoss JIRA] (TEIID-3438) Engine do not allow empty Blob return
by Kylin Soong (JIRA)
Kylin Soong created TEIID-3438:
----------------------------------
Summary: Engine do not allow empty Blob return
Key: TEIID-3438
URL: https://issues.jboss.org/browse/TEIID-3438
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 8.11
Reporter: Kylin Soong
Assignee: Steven Hawkins
If translator retrieveValue return a empty Blob, the engine will throw NPE as below
Caused by: java.lang.NullPointerException
at javax.sql.rowset.serial.SerialBlob.<init>(SerialBlob.java:100)
at org.teiid.common.buffer.LobManager.persistLob(LobManager.java:226)
at org.teiid.common.buffer.LobManager.updateReferences(LobManager.java:141)
at org.teiid.common.buffer.TupleBuffer.addTupleBatch(TupleBuffer.java:203)
at org.teiid.query.processor.BatchCollector.flushBatchDirect(BatchCollector.java:229)
at org.teiid.dqp.internal.process.RequestWorkItem$1.flushBatchDirect(RequestWorkItem.java:653)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 8 months
[JBoss JIRA] (TEIID-3437) Inconsistencies with row count handling
by Steven Hawkins (JIRA)
Steven Hawkins created TEIID-3437:
-------------------------------------
Summary: Inconsistencies with row count handling
Key: TEIID-3437
URL: https://issues.jboss.org/browse/TEIID-3437
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors, Query Engine
Affects Versions: 8.10
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 8.11
With TEIID-3271 we addressed returning all of the update counts from a bulk operation such that the direct JDBC logic was correct. However this left the logic inconsistent with the projectintonode (which could result in invalid rowcount variables) and with the accumulo, solr, and simpledb translators.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
9 years, 8 months