Support for unsigned int database type?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Solved! Go to Solution.
- Labels:
- Database Connection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
if [Value]<0 then 4294967296+[Value] else [Value] endif
should fix up your negative values. This is from memory, I have not tested, so make sure you test 1st.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @jgreene
Did this get you to an answer that solved your problem? If yes, would you mind marking this one as solved (to include this in the knowledge base) - or if there are still open questions, feel free to reply, and we can work together to find an answer that gets you where you need to be.
Thanks @jgreene, have a good weekend
Sean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I didn't ever test the workaround as we changed the type in the database nor have I tested the most recent versions of Alteryx to see if this bug has been fixed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @jgreene,
I've tried to simulate this on my home infra - I have a SQL server installed at home - but unfortunately MS SQL doesn't support unsigned integers (this seems to be a long-standing debate in the MS SQL team - see here https://connect.microsoft.com/SQLServer/feedback/details/515502/unsigned-integer-data-type)
However my understanding is:
- This is not natively supported by Alteryx (although I may be wrong, but I cannot find any reference to this, and based on @Ned 's response, I'd guess it's not part of the core DB engine)
- this is supported by ODBC natively (https://docs.microsoft.com/en-us/sql/odbc/reference/appendixes/sql-data-types) as long as the DB driver supports it.
So - two steps here:
a) workaround that works - on my own server, I've experimented with two options, namely bring integers (in your case, only unsigned integers) back either as a larger signed int type or as a string. Both will work natively in Alteryx
The SQL to do this on a Microsoft SQL server is below this, and this can be put directly into your alteryx input tool. The query syntax may not be the same on your database, but if you let me know what DBMS you're using, I'm happy to help you to find the equivalent SQL for your server.
SQL:
Select
cast(TestTable.testInt as varchar(10)) as TestIntAsString,
cast(TestTable.testInt as BigInt) as TestIntAsBigInt
From TestTable
b) Second thing to do is to log this as an idea in the ideas section - I'll do this right now, and give you credit for it.
Based on this - hopefully we can mark this thread as closed - and focus on the idea entry to add native support for this in a future release.
Cheers @jgreene
Sean
