Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No decoder for type id 6 #52

Open
prathamesh-ytel opened this issue May 10, 2016 · 1 comment
Open

No decoder for type id 6 #52

prathamesh-ytel opened this issue May 10, 2016 · 1 comment

Comments

@prathamesh-ytel
Copy link

Hi,
I am getting error "cassandra/buffer/init.lua:151: No decoder for type id 6" while running SELECT query (I am using plain Lua).
When I did some trials with combination of selected columns I found the problem occurs when I am selecting columns with "decimal" type.
I looked into the source code I found in file "cassandra/buffer/init.lua" line number 56, you have commented the "decimal 0x06". (Which I suppose is your future implementation plan).
As the cql decimal is "Variable-precision decimal", I tried out by putting [cql_types.decimal] = "float" or [cql_types.decimal] = "int" but ended up getting 0.
The Insert query is working (not sure this info helps).
Could you please comment on this and fix the issue?

P.S: Thanks for this great library. Awesome work.

@thibaultcha
Copy link
Owner

Hi,

Thanks for the report. Yes, this serializer was never written and I never thought of adding it. I think it has to do with the CQL decimal type, right?
The format is described in section 6.5 of the native protocol https://github.com/apache/cassandra/blob/trunk/doc/native_protocol_v3.spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants