Search code examples
integercassandraphpcassa

some problems with IntegerType in cassandra


Why I am getting such symbols "N���" from the column with IntegerType? in cassandra-cli.bat it is showing normally, as integer. I'm using phpcassa...maybe I need to convert this value, like I'm doing with UUID

UUID::import($uuid)->string

but with other certain function?


Solution

  • Thanks to all!I found a solution. just needs to unpack('N', $value); or to modify a bit phpcassa's ColumnFamily class, it uses this(unpack) function, but this function is private