Comments (9)
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.
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.
Yeah, looks like that is the case. No exception and no results coming back.
Is it a quick fix?
from dynamodb.sql.
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.
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.
@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.
I've published a hotfix version 2.1.1
with this fix
from dynamodb.sql.
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.
Here you go : 21b5fa4
from dynamodb.sql.
Related Issues (20)
- Support global secondary index
- Update README with some simple examples
- Expose useful exception details from InvalidQuery and InvalidScan exceptions
- Update C# examples
- Fix typo of Cxt
- Change namespace so that you no longer have to open a separate namespace to get the extension methods
- Add unit tests that run against DynamoDBLocal
- Add C# example for scanning with specific attributes
- Add support for QueryFiltering HOT 1
- Add support for QueryAsync and ScanAsync on DynamoDBContext
- Error on queries on tables with special characters in their names HOT 3
- "Borrow" Tomas's work on dynamodb query builder HOT 1
- DynamoDb.SQL.InvalidQueryException when table names have '_' underscore characters HOT 11
- Move to new AWSSDK
- Querying on index with very long number HOT 6
- Add support for .NET Core
- Join example missing HOT 1
- New maintainer needed HOT 1
- Parser error when any field contains underscore in it's name HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamodb.sql.