-
Notifications
You must be signed in to change notification settings - Fork 554
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
feat/adding scalar-variable expression #1260
base: main
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 8973785216Details
💛 - Coveralls |
@@ -793,6 +793,11 @@ pub enum Expr { | |||
OuterJoin(Box<Expr>), | |||
/// A reference to the prior level in a CONNECT BY clause. | |||
Prior(Box<Expr>), | |||
/// Scalar variable creation e.g. `[@]foo INT` |
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.
Would it be possible to add a link to some documentation that uses this expression? I think that would be helpful in this case - e.g I'm unfamiliar with the syntax and unable to tell how it's used as a result
@@ -793,6 +793,11 @@ pub enum Expr { | |||
OuterJoin(Box<Expr>), | |||
/// A reference to the prior level in a CONNECT BY clause. | |||
Prior(Box<Expr>), | |||
/// Scalar variable creation e.g. `[@]foo INT` | |||
ScalarVariable { |
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.
hmm, it looks like we're missing implementation in the PR for how the parser actually parses/constructs the ScalarVariable expression or is that intended?
@iffyio it is likely that this PR will not be needed, there is another route I am taking with the Scalar Variable in datafusion 👍 will leave it up just in case though. |
marking as draft as we sort out what to do here |
ScalarVariable
expression typeScalarVariable
has two fields one for the corresponding SQL datatype and one of the name of the variableExpr --> String
datafusion#9726