Giter VIP home page Giter VIP logo

Comments (5)

elandau avatar elandau commented on May 28, 2024

What version of cassandra are you running? Also, are any other tests failing?

from astyanax.

jordanlewis avatar jordanlewis commented on May 28, 2024

1.0.6. It's the only test that fails.

from astyanax.

ytifle avatar ytifle commented on May 28, 2024

I too have the same issue.

Cassandra 1.0.8 on windows 7x64, single node, default config (Except for the thrift port, that needs to be adjusted to 7102 for the tests to run [And it's not documented])

Trace:


Test set: com.netflix.astyanax.thrift.ThrifeKeyspaceImplTest

Tests run: 49, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.039 sec <<< FAILURE!
testCqlCount(com.netflix.astyanax.thrift.ThrifeKeyspaceImplTest) Time elapsed: 0.01 sec <<< FAILURE!
junit.framework.AssertionFailedError: null
at junit.framework.Assert.fail(Assert.java:47)
...
at com.netflix.astyanax.thrift.ThrifeKeyspaceImplTest.testCqlCount(ThrifeKeyspaceImplTest.java:1382)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
...

Additional Info:

TEST-com.netflix.astyanax.thrift.ThrifeKeyspaceImplTest.xml
http://pastie.org/3727005

from astyanax.

elandau avatar elandau commented on May 28, 2024

The CQL API in 1.0.8 is not backwards compatible with 0.8. I have commented out this unit test but will update to the newer version soon.

from astyanax.

elandau avatar elandau commented on May 28, 2024

With the latest CQL a count query returns a single row with a column "count" and value a long representing the count. With the current Astyanax api (as of 1.0.4) the best way to get the count from the result is to do the following

result.getResult()
.getRows()
.getRowByIndex(0)
.getColumns()
.getColumnByName("count")
.getLongValue()

from astyanax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.