Giter Club home page Giter Club logo

erlvolt's People

Contributors

jhugg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

erlvolt's Issues

Floats (Doubles) Not Supported

After extending examples/voltkv in the open source voltdb distribution to use strings as the primary key and double types as the value I attempted to store a value as follows:

crypto:start(), application:start(erlvolt).
erlvolt:add_pool(kv, [{"localhost", 21212}]).
erlvolt:call_procedure(kv, "Put", [{9, <<"key">>}, {8, 9.99}]).

This resulted in the following deserialization error:

{result,{voltresponse,{0,
                       <<0,0,53,0,0,0,0,0>>,
                       -2,
                       <<"Exception while deserializing procedure params, procedure=Put\njava.lang.RuntimeExcep"...>>,
                       128,<<>>,<<>>,10},
                      []}}

I then attempted to store the key/value as follows:

crypto:start(), application:start(erlvolt).
erlvolt:add_pool(kv, [{"localhost", 21212}]).
erlvolt:call_procedure(kv, "Put", ["key", 9.99]).

Which resulted in:

\///////////////////////////////////////////////////////////////////////////////////
///   <0.49.0> | ###  ERROR: [wire level] Procedure call failed: error, {missing_parameter_type,9.99}
###                           Call: "Put" ["key",9.99]
###                           Call ID: <<0,0,53,0,0,0,0,0>>
###                           Conn id: {1399,89586,365790}
###                           Socket: #Port<0.3812>.
///                   Process: <0.49.0>
///                   Trace: [{erlvolt_wire,volt_parameter,1,
                                  [{file,"src/erlvolt_wire.erl"},{line,2428}]},
                              {erlvolt_wire,'-volt_parameters/1-lc$^0/1-0-',
                                  1,
                                  [{file,"src/erlvolt_wire.erl"},{line,2399}]},
                              {erlvolt_wire,'-volt_parameters/1-lc$^0/1-0-',
                                  1,
                                  [{file,"src/erlvolt_wire.erl"},{line,2399}]},
                              {erlvolt_wire,volt_parameters,1,
                                  [{file,"src/erlvolt_wire.erl"},{line,2399}]},
                              {erlvolt_wire,volt_invoke,3,
                                  [{file,"src/erlvolt_wire.erl"},{line,2338}]},
                              {erlvolt_wire,call_procedure,5,
                                  [{file,"src/erlvolt_wire.erl"},{line,2323}]},
                              {erlvolt_conn,tx_loop,2,
                                  [{file,"src/erlvolt_conn.erl"},{line,189}]}]
////////////////////////////////////////////////////////////////////////////////////

=ERROR REPORT==== 2-May-2014::21:00:04 ===
Error in process <0.49.0> with exit value: {{nocatch,{erlvolt_asynch_proc_call_failed,{error,{missing_parameter_type,9.990000e+00},{1399,89586,365790},#Port<0.3812>,"Put",["key",9.990000e+00],<<8 bytes>>}}},[{erlvolt_wire,call_procedure,5,[{file,"src/erlvolt_wire.erl"},{line,2329}]},{erlvolt_conn,tx_loop,2,[{file,"src/erlvolt_... 

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.