-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there in AlenkaDB such a thing as NULL? #21
Comments
Hi Alexey ! Best regards, Anton |
Hi Anton! You are right, that it would complicate operations on numbers. But when joining tables the maximum value will be much less likely to coincide with the real values, than it will happen with 0. And in this case we can't solve this problem. Please, could you implement it, an example through #define - by switching between 0 and a maximum values, for integers and decimals? And NULL strings also always remain empty - all chars are 0. In this case, for arithmetic operations on numbers, the maximum value converts to zero through easily implementing functions Oracle decode/nvl:
|
Hi Alexey ! Anton |
Hi Anton!
Behavior as in Oracle in the examples:
// result: NULL
// result: 2
// result: 2 b 2 b Thanks for your future fixes! |
Hi, I came across the discussion, and I love to see how this project will turn out. AlexeyAB correctly explains how nulls should be handled. I just wanted to add that wikipedia has a great article on how nulls are handled: http://en.wikipedia.org/wiki/Null_(SQL)#Arithmetic_operations it references to the ISO/IEC (2003). ISO/IEC 9075-2:2003. |
Hello Anton.
Is there in AlenkaDB such a thing as NULL? I get an exception, when I load the data from the pipe-delimited files:
1388582970|152470|2025211056|14.09.2012|0|0|0|0|0|0|0|0|0|0|196407|ABC||||||
This variant works fine:
1388582970|152470|2025211056|14.09.2012|0|0|0|0|0|0|0|0|0|0|196407|ABC|6|5|4|3|2|1
And if NULL is not implemented, then the quickest solution would be to use the maximum value possible for this type of field, when downloading from the pipe-delimited file.
The text was updated successfully, but these errors were encountered: