db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mamta A. Satoor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5614) NullPointerException with INSERT INTO [global temporary table] SELECT ... FROM [VTI]
Date Wed, 19 Sep 2012 17:29:07 GMT

    [ https://issues.apache.org/jira/browse/DERBY-5614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458873#comment-13458873
] 

Mamta A. Satoor commented on DERBY-5614:
----------------------------------------

DERBY-4789 (Always apply the bulk-insert optimization when inserting from a table function.)
DERBY-5614 (NullPointerException with INSERT INTO [global temporary table] SELECT ... FROM
[VTI])

The changes for DERBY-5614 depend on the changes for DERBY-4789.

Backported both these jiras into 10.6.2.3 with revision 1387685.

                
> NullPointerException with INSERT INTO [global temporary table] SELECT ... FROM [VTI]
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-5614
>                 URL: https://issues.apache.org/jira/browse/DERBY-5614
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.7.1.1, 10.8.2.2, 10.9.1.0
>            Reporter: Kristian Waagan
>            Assignee: Kristian Waagan
>              Labels: derby_triage10_9
>             Fix For: 10.7.1.4, 10.8.2.3, 10.9.1.0
>
>         Attachments: derby-5614-1a-disable_bulkinsert_gtt.diff, derby-5614-1b-disable_bulkinsert_gtt.diff,
repro.sql
>
>
> Inserting into a global temporary table (GTT) while selecting data from a VTI fails with
a NullPointerException:
> Caused by: java.lang.NullPointerException
>         at org.apache.derby.impl.sql.execute.WriteCursorConstantAction.getEmptyHeapRow(WriteCursorConstantAction.java:324)
>         at org.apache.derby.impl.sql.execute.InsertResultSet.bulkInsertCore(InsertResultSet.java:1209)
>         at org.apache.derby.impl.sql.execute.InsertResultSet.open(InsertResultSet.java:466)
>         at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(GenericPreparedStatement.java:443)
>         at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:324)
>         at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1242)
>         ... 6 more
> Investigation exposed the fact that bulk insert doesn't support a GTT as the target,
and further that Derby enables bulk insert when the source is a VTI.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message