-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Preserve parameter type information in compiled runtime #8756
Conversation
787ec20
to
98f53ea
Compare
|
||
override def generateExpression[E](structure: MethodStructure[E])(implicit context: CodeGenContext): E = | ||
structure.loadVariable(variableName) | ||
|
||
override def nullable(implicit context: CodeGenContext) = true | ||
override def nullable(implicit context: CodeGenContext) = cType.canBeNullable |
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.
Does this mean that params can now be non-nullable?
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.
AFAIK, yes, but only when assembling logical plans programmatically.
Looks good. Missing acceptance tests that make sure the parameter types are preserved |
a04bb8b
to
fd6643e
Compare
- Fix ordering of nulls for nodes/relationships
- fix cases where orderability of Lists failed: Integer[], Long[], Float[], Double, float[], double[]
…ys to primitive streams
If a query variable already exists in the context we do not need to project it again.
To use primitive types internally we need to force unboxing in expectParameter
When node and relationship parameters are unboxed into primitives, we need to handle nulls properly (assign the dedicated null value of -1L).
…iables to context - removes unused CompiledConversionUtils.loadPrimitiveListParameter method
…tive longs to primitive longs
- it fails on compiled runtime, and making it green would unnecessarily delay the rest of the PR - this is not a regression, the test also fails against current 3.2 branch
- Reintroduce array parameter value test
fd6643e
to
8e5b6b1
Compare
This is needed for micro-benchmarking with lists of primitive types.
Also