0

can I set a MAX Limit to a BIGINT cassandra data type? this is my first step in cassandra db. for example: bigint(10) just like in mysql?

1
  • MySQL's bigint (10) has no restrictions on the size of the numbers. It's the same as bigint, 8-byte integers. Jan 14, 2017 at 12:22

1 Answer 1

1

No. A Bigint is just a 64-bit signed long. No size or space limits can be specified. https://cassandra.apache.org/doc/latest/cql/types.html

2
  • Theirs docs have DECIMAL as a type option. Could this be used, for example with DECIMAL(8,0)? Or I am totally off? Jan 14, 2017 at 20:44
  • And also: does Cassandra have CHECK constraints? Jan 14, 2017 at 20:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.