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

Call to undefined method TBinaryProtocol #47

Open
loretoparisi opened this issue Nov 18, 2010 · 2 comments
Open

Call to undefined method TBinaryProtocol #47

loretoparisi opened this issue Nov 18, 2010 · 2 comments

Comments

@loretoparisi
Copy link

Unexpected behavior on getRangeKeys:

Fatal error: Call to undefined method TBinaryProtocol::BBBB��M�3„Š��() in /.../pandra/lib/thrift/packages/cassandra/cassandra_types.php on line 1069

Code snippet:

  $res=PandraCore::getRangeKeys(
        'myNS',
        array('start'=>'','finish'=>''),
        new cassandra_ColumnParent(array(
            'column_family' => 'myCF',
        )),
    new PandraSlicePredicate(
        PandraSlicePredicate::TYPE_RANGE,
        array('start' => '',
            'finish' => '',
            'count' => '',
            'reversed' => false))
        );

Any idea?

@loretoparisi
Copy link
Author

Same it happens when doing cf slices by the driver Pandra itself:

Stacktrace:

7 0.3672 1494792 PandraSuperColumnFamily->load( ) ../Tester.class.php:1172
8 0.3673 1497524 PandraCore::getCFSlice( ) ../SuperColumnFamily.class.php:174
9 0.3674 1498060 CassandraClient->get_slice( ) ../Core.class.php:664
10 0.3674 1498128 CassandraClient->send_get_slice( ) ../Cassandra.php:168
11 0.3675 1501424 cassandra_Cassandra_get_slice_args->write( ) ../Cassandra.php:188
12 0.3677 1501860 cassandra_SlicePredicate->write( ) ../Cassandra.php:1848
13 0.3677 1501860 cassandra_SliceRange->write( ) ../cassandra_types.php:1188

@loretoparisi
Copy link
Author

I tried to update Pandra in order to use new

$keyRange = new cassandra_KeyRange(array(
        'start_key' => '', 'end_key' => '', 'count' => ''
    ));

$res = PandraCore::getRangeSlices(
        'myNS',
        $keyRange,
        new cassandra_ColumnParent(array(
            'column_family' => 'myCF',
        )),
        new PandraSlicePredicate(
            PandraSlicePredicate::TYPE_RANGE,
            array('start' => '',
                'finish' => '',
                'count' => '',
                'reversed' => false)));

No results out of this (new) range keys slice.

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

1 participant