Code Monkey home page Code Monkey logo

Comments (9)

theburningmonk avatar theburningmonk commented on June 8, 2024

Do you get any exceptions? or just not get any results back when you run
the query?

On Fri, Aug 28, 2015 at 1:00 PM, zairnamlas [email protected]
wrote:

Hi there again,
I have just noticed that the long numbers are not working in sql.
Consider the following two examples

// Not working even the data is present
SELECT * FROM pd_cs_chatroomuser WHERE UserId = 10205471065416056
WITH(Index(UserIdIndex, false), NoConsistentRead)

// Working
SELECT * FROM pd_cs_chatroomuser WHERE UserId = 10205471065
WITH(Index(UserIdIndex, false), NoConsistentRead)


Reply to this email directly or view it on GitHub
#28.

from dynamodb.sql.

theburningmonk avatar theburningmonk commented on June 8, 2024

I think what's happening is that, the integer value gets converted to int32
which overflows in this case so by the time it's converted to a request to
DynamoDB it's sending through a negative number instead.

On Fri, Aug 28, 2015 at 1:23 PM, Yan Cui [email protected] wrote:

Do you get any exceptions? or just not get any results back when you run
the query?

On Fri, Aug 28, 2015 at 1:00 PM, zairnamlas [email protected]
wrote:

Hi there again,
I have just noticed that the long numbers are not working in sql.
Consider the following two examples

// Not working even the data is present
SELECT * FROM pd_cs_chatroomuser WHERE UserId = 10205471065416056
WITH(Index(UserIdIndex, false), NoConsistentRead)

// Working
SELECT * FROM pd_cs_chatroomuser WHERE UserId = 10205471065
WITH(Index(UserIdIndex, false), NoConsistentRead)


Reply to this email directly or view it on GitHub
#28.

from dynamodb.sql.

zairnamlas avatar zairnamlas commented on June 8, 2024

Yeah, looks like that is the case. No exception and no results coming back.
Is it a quick fix?

from dynamodb.sql.

theburningmonk avatar theburningmonk commented on June 8, 2024

Yup, should be straight forward, will fix it tonight

On Fri, Aug 28, 2015 at 3:38 PM, zairnamlas [email protected]
wrote:

Yeah, looks like that is the case. No exception and no results coming back.
Is it a quick fix?


Reply to this email directly or view it on GitHub
#28 (comment)
.

from dynamodb.sql.

zairnamlas avatar zairnamlas commented on June 8, 2024

Thanks, let me know the changes as I'm using inline project of yours with latest AWS SDK. I can apply those changes in my version of the code.

from dynamodb.sql.

theburningmonk avatar theburningmonk commented on June 8, 2024

@zairnamlas took a little longer than I had before a bank holiday weekend trip but turns out the parser was fine, it was a problem when the float was translated to a DynamoDB request because the default behaviour of ToString is to use scientific notation on large floating point numbers.

In the end it was a very simple fix though, which was to use the r formatting string https://msdn.microsoft.com/en-us/library/dwhawy9k.aspx

from dynamodb.sql.

theburningmonk avatar theburningmonk commented on June 8, 2024

I've published a hotfix version 2.1.1 with this fix

from dynamodb.sql.

zairnamlas avatar zairnamlas commented on June 8, 2024

Thanks Yan. I'm on holidays and I'll check that next week. Could you please
share the changed loc?
On 1 Sep 2015 6:18 pm, "Yan Cui" [email protected] wrote:

@zairnamlas https://github.com/zairnamlas took a little longer than I
had before a bank holiday weekend trip but turns out the parser was fine,
it was a problem when the float was translated to a DynamoDB request
because the default behaviour of ToString is to use scientific notation
on large floating point numbers.

In the end it was a very simple fix though, which was to use the r
formatting string https://msdn.microsoft.com/en-us/library/dwhawy9k.aspx


Reply to this email directly or view it on GitHub
#28 (comment)
.

from dynamodb.sql.

theburningmonk avatar theburningmonk commented on June 8, 2024

Here you go : 21b5fa4

from dynamodb.sql.

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.