Unable to bind list values using global type constants

Description

Given the following table using a list

and the following prepared or bound insert statement to insert the list items

and creating the list object instance through the global type definition

The driver will throw an `InvalidArgumentException: Invalid value type` when binding the values using the ExecutionOptions and executing the statement; NOTE: Map and Set objects do not produce the exception.

A current workaround is to use either of the following syntaxes when creating a list object with v1.2.2 of the PHP driver:

  • $list = new Cassandra\Collection(Cassandra\Type::varchar());

  • $listtype = Cassandra\Type::Collection(Cassandra\Type::varchar());
    $list = $listtype->create();

Environment

None

Pull Requests

None

Activity

Fixed

Details

Assignee

Reporter

Original estimate

Time tracking

No time logged3d remaining

Fix versions

Priority

Created September 7, 2016 at 11:08 PM
Updated August 14, 2017 at 3:49 PM
Resolved August 14, 2017 at 3:49 PM