cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8782) Not able to JAVA class custom data type from cql
Date Wed, 11 Feb 2015 10:16:13 GMT

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

Sylvain Lebresne commented on CASSANDRA-8782:
---------------------------------------------

Custom types definitively work in CQL as experienced at least by the [this|https://github.com/datastax/java-driver/blob/2.1/driver-core/src/test/java/com/datastax/driver/core/CustomTypeTest.java]
java driver test. The error almost surely mean that you haven't properly set your classpath
so that Cassandra can find you class file. You should double check that you've done that properly
and ask on the user mailing list if you can't figure it out.

> Not able to JAVA class custom data type from cql
> ------------------------------------------------
>
>                 Key: CASSANDRA-8782
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8782
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Examples
>         Environment: windows, cassandra 2.x
>            Reporter: Rahul Kumar
>              Labels: custom, data, type
>         Attachments: State.java, UnitedStatesState.java, UnitedStatesStateSerializer.java
>
>
> I am trying to use custom defined data type in java in cql, but i am getting an error
> < ErrorMessage code=2000 [Syntax error in CQL query] message = "Error setting type
cqltypes.UnitedStatesState: Unable to find abstract-type class 'cqltypes.UnitedStatesState'
" >>
> Not sure why it is not able to custom class



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message