[
https://issues.apache.org/jira/browse/DERBY-3971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652789#action_12652789
]
Rick Hillegas commented on DERBY-3971:
--------------------------------------
Hi Mayuresh,
The preferred (and supported) way to invoke the diagnostic VTIs is via the
table function syntax, as described in the Reference Guide section titled
"SYSCS_DIAG diagnostic tables and functions". So, for instance, the supported
way to invoke SpaceTable is this:
select * from table( syscs_diag.space_table( 'APP', 'T' ) ) s
The information in the javadoc is stale and reflects the old Cloudscape syntax
for instantiating a VTI. That syntax was largely deprecated as part of an
effort to bring us into compliance with the ANSI/ISO standard. I don't see
aliases defined for any of the diagnostic VTIs and I think that the javadoc
should be corrected. Thanks for finding this.
> select * from new SPACETABLE ('<tablename>') t; throws an error
> ---------------------------------------------------------------
>
> Key: DERBY-3971
> URL: https://issues.apache.org/jira/browse/DERBY-3971
> Project: Derby
> Issue Type: Bug
> Affects Versions: 10.4.2.0
> Environment: generic
> Reporter: Mayuresh Nirhali
> Priority: Minor
>
> The alias for SpaceTable diagnostic table does not work. I can reproduce this
> on 10.2 trunk and also on the head.
> ij> select * from new SPACETABLE('t') ts;
> ERROR 42X01: Syntax error: SPACETABLE.
> The following works query works though,
> ij> select * from new
> org.apache.derby.diag.SpaceTable('schemaname','tablename') a;
> The SpaceTable.java has a javadoc comment, as below,
> Alternatively, the table can be invoked through the system alias
> SpaceTable
> <PRE> select * from new SPACETABLE('MYTABLE') t; </PRE>
> I believe either the alias should work or the javadoc comment should be
> corrected.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.