Quoted CQL type cause the following ruby driver error :
/Library/Ruby/Gems/2.0.0/gems/cassandra-driver-3.1.0/lib/cassandra/cluster/schema/cql_type_parser.rb:80:in `block in lookup_type': unable to lookup type "\"Bar\"" (Cassandra::Cluster::Schema::CQLTypeParser::IncompleteTypeError)
Configuration to reproduce the error : CREATE KEYSPACE atest WITH replication = {'class': 'NetworkTopologyStrategy', 'dc1': '1'}; CREATE TYPE atest."Bar" ( x int ); CREATE TABLE atest.table1 ( a text PRIMARY KEY, b frozen<"Bar"> )
Reproduce the issue by running the following code : #!/usr/bin/ruby -w -d -v require 'cassandra'
cluster = Cassandra.cluster # connects to localhost by default keyspace = 'system_schema' session = cluster.connect(keyspace) # create session, optionally scoped to a keyspace, to execute queries
session.execute_async('SELECT keyspace_name, table_name FROM tables') # fully asynchronous api
Environment
Cassandra 3.0.10 + Ruby Cassandra Driver 3.1.0
Pull Requests
None
Activity
Sandeep Tamhankar March 13, 2017 at 6:16 PM
Had a chat with some folks, and we will fix this in a matter of weeks. Thanks for your patience.
vincent royer March 4, 2017 at 3:21 PM
Personally yes, but for my users, it's a blocking issue. So, i wonder if i need to release a fixed version on my github repo, is it a matter of weeks or months ?
Sandeep Tamhankar March 2, 2017 at 9:39 PM
No, there are no plans for a release anytime soon. Ideally, we'd want to coalesce a few more fixes before doing a release. Can you continue to run with this tweaked one-off version?
vincent royer February 25, 2017 at 8:35 PM
I'm not very familiar with ruby, but it runs correctly with your fix. Do you have a release date for the next version including this fix ? Thanks.
Quoted CQL type cause the following ruby driver error :
/Library/Ruby/Gems/2.0.0/gems/cassandra-driver-3.1.0/lib/cassandra/cluster/schema/cql_type_parser.rb:80:in `block in lookup_type': unable to lookup type "\"Bar\"" (Cassandra::Cluster::Schema::CQLTypeParser::IncompleteTypeError)
Configuration to reproduce the error :
CREATE KEYSPACE atest WITH replication = {'class': 'NetworkTopologyStrategy', 'dc1': '1'};
CREATE TYPE atest."Bar" ( x int );
CREATE TABLE atest.table1 (
a text PRIMARY KEY,
b frozen<"Bar">
)
Reproduce the issue by running the following code :
#!/usr/bin/ruby -w -d -v
require 'cassandra'
cluster = Cassandra.cluster # connects to localhost by default
keyspace = 'system_schema'
session = cluster.connect(keyspace) # create session, optionally scoped to a keyspace, to execute queries
session.execute_async('SELECT keyspace_name, table_name FROM tables') # fully asynchronous api