Repository navigation
Support enums in relational operations - #3012
Merged
Merged
Conversation
Contributor
Result of fdb-record-layer-pr on Linux CentOS 7
|
g31pranjal
force-pushed
the
support_enum_in_relops
branch
from
January 14, 2025 16:32
24bc744 to
352a83d
Compare
Contributor
Result of fdb-record-layer-pr on Linux CentOS 7
|
Contributor
Result of fdb-record-layer-pr on Linux CentOS 7
|
g31pranjal
force-pushed
the
support_enum_in_relops
branch
from
January 15, 2025 00:00
352a83d to
c59de90
Compare
Contributor
Result of fdb-record-layer-pr on Linux CentOS 7
|
Contributor
Result of fdb-record-layer-pr on Linux CentOS 7
|
normen662
requested changes
Jan 15, 2025
| */ | ||
| @API(API.Status.EXPERIMENTAL) | ||
| public class FieldValue extends AbstractValue implements ValueWithChild { | ||
| public class FieldValue extends AbstractValue implements ValueWithChild, CreatesDynamicTypesValue { |
Contributor
There was a problem hiding this comment.
That should not be necessary, the inner type should already have been declared elsewhere.
Member
Author
There was a problem hiding this comment.
As discussed, made PromoteValue to inherit CreatesDynamicTypesValue .
| NONE_TO_ARRAY(Type.TypeCode.NONE, Type.TypeCode.ARRAY, (descriptor, in) -> in), | ||
| NULL_TO_ENUM(Type.TypeCode.NULL, Type.TypeCode.ENUM, (descriptor, in) -> null), | ||
| STRING_TO_ENUM(Type.TypeCode.STRING, Type.TypeCode.ENUM, ((descriptor, in) -> ((Descriptors.EnumDescriptor)descriptor).findValueByName((String)in))); | ||
| STRING_TO_ENUM(Type.TypeCode.STRING, Type.TypeCode.ENUM, ((descriptor, in) -> stringToEnumValue((Descriptors.EnumDescriptor) descriptor, (String) in))); |
Contributor
There was a problem hiding this comment.
Suggested change
| STRING_TO_ENUM(Type.TypeCode.STRING, Type.TypeCode.ENUM, ((descriptor, in) -> stringToEnumValue((Descriptors.EnumDescriptor) descriptor, (String) in))); | |
| STRING_TO_ENUM(Type.TypeCode.STRING, Type.TypeCode.ENUM, ((descriptor, in) -> stringToEnumValue((Descriptors.EnumDescriptor)descriptor, (String)in))); |
Contributor
Result of fdb-record-layer-pr on Linux CentOS 7
|
normen662
requested changes
Jan 22, 2025
| - query: SELECT * From TABLE_A where "mood" IS NULL | ||
| - unorderedResult: [{14, 'alice', !null }, | ||
| {15, 'bob', !null }] | ||
| - |
Contributor
There was a problem hiding this comment.
Can you add an inequality with a string, i.e. "mood" < "something"
normen662
approved these changes
Jan 22, 2025
Contributor
Result of fdb-record-layer-pr on Linux CentOS 7
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #3011