[teiid-issues] [JBoss JIRA] (TEIID-2837) Cassandra: doesn't work with Case Sensitvie KEYSPACE and TABLE name

Steven Hawkins (JIRA) issues at jboss.org
Tue Feb 4 19:40:28 EST 2014


    [ https://issues.jboss.org/browse/TEIID-2837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12941359#comment-12941359 ] 

Steven Hawkins commented on TEIID-2837:
---------------------------------------

All we are doing is asking the Cassandra Metadata for the KeyspaceMetadata by the name set on the Cassandra data source.  So more than likely the resolution here is to use a different keyspace name on your data source.  What does your data source configuration look like?  

It does look like we should add a  null check as the Cassandra logic will happily return a null from getKeyspace.
                
> Cassandra:  doesn't work with Case Sensitvie KEYSPACE and TABLE name
> --------------------------------------------------------------------
>
>                 Key: TEIID-2837
>                 URL: https://issues.jboss.org/browse/TEIID-2837
>             Project: Teiid
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: 8.6
>         Environment: Cassandra with Teiid 8.6
>            Reporter: Ivan Chan
>            Assignee: Steven Hawkins
>              Labels: teiid
>
> Teiid doesn't work with KeySpace or Table which contains UpperCase.
> Reference From Cassandra -  Using double quote for Case Sensitive KeySpace and Table:
> http://www.datastax.com/docs/1.1/references/cql/CREATE_KEYSPACE
> Exception when try to deploy:
> java.lang.NullPointerException
>         at org.teiid.translator.cassandra.metadata.CassandraMetadataProcessor.processMetadata(CassandraMetadataProcessor.java:52)
>         at org.teiid.translator.cassandra.CassandraExecutionFactory.getMetadata(CassandraExecutionFactory.java:100)
>         at org.teiid.translator.cassandra.CassandraExecutionFactory.getMetadata(CassandraExecutionFactory.java:53)
>         at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:61)
>         at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55)
>         at org.teiid.runtime.EmbeddedServer.loadMetadata(EmbeddedServer.java:644)
>         at org.teiid.runtime.AbstractVDBDeployer.loadMetadata(AbstractVDBDeployer.java:161)
>         at org.teiid.runtime.EmbeddedServer.deployVDB(EmbeddedServer.java:605)
>         at org.teiid.runtime.EmbeddedServer.deployVDB(EmbeddedServer.java:536)

--
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


More information about the teiid-issues mailing list