-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Minor: improve documentation for IsNotNull, DISTINCT, etc #8052
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,21 +99,21 @@ pub enum Expr { | |
SimilarTo(Like), | ||
/// Negation of an expression. The expression's type must be a boolean to make sense. | ||
Not(Box<Expr>), | ||
/// Whether an expression is not Null. This expression is never null. | ||
/// True if argument is not NULL, false otherwise. This expression itself is never NULL. | ||
IsNotNull(Box<Expr>), | ||
/// Whether an expression is Null. This expression is never null. | ||
/// True if argument is NULL, false otherwise. This expression itself is never NULL. | ||
IsNull(Box<Expr>), | ||
/// Whether an expression is True. Boolean operation | ||
/// True if argument is true, false otherwise. This expression itself is never NULL. | ||
IsTrue(Box<Expr>), | ||
/// Whether an expression is False. Boolean operation | ||
/// True if argument is false, false otherwise. This expression itself is never NULL. | ||
IsFalse(Box<Expr>), | ||
/// Whether an expression is Unknown. Boolean operation | ||
/// True if argument is NULL, false otherwise. This expression itself is never NULL. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might be a little bit misleading, prob we need to add what is unknown ....
so here the user can think that unknown the same as null, but its boolean null, not sure if it matters tbh There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think saying these expressions result in NULL is accurate. There is indeed some subtlety related to using expressions that evaluate to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here's a fun example of that subtlety: https://www.db-fiddle.com/f/xbHAYw59p4tgtR1L39p84x/0 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
IsUnknown(Box<Expr>), | ||
/// Whether an expression is not True. Boolean operation | ||
/// True if argument is FALSE or NULL, false otherwise. This expression itself is never NULL. | ||
IsNotTrue(Box<Expr>), | ||
/// Whether an expression is not False. Boolean operation | ||
/// True if argument is TRUE OR NULL, false otherwise. This expression itself is never NULL. | ||
IsNotFalse(Box<Expr>), | ||
/// Whether an expression is not Unknown. Boolean operation | ||
/// True if argument is TRUE or FALSE, false otherwise. This expression itself is never NULL. | ||
IsNotUnknown(Box<Expr>), | ||
/// arithmetic negation of an expression, the operand must be of a signed numeric data type | ||
Negative(Box<Expr>), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍