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.
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
Nested struct binop comparison #9452
Nested struct binop comparison #9452
Changes from 27 commits
262c2a2
a865fe0
ce4440c
1472c5f
4a31fb6
ce2d727
10c95f9
12cd09e
b6fa590
d64c1f9
57900da
f170149
de129a1
5e84e89
b632192
4266f8c
367ec07
5a1f016
1f29168
1d6263e
97bd5e1
48d0355
6cf0e16
9ec2acf
3016abf
b2a7973
191da69
2cf2b28
2b634c4
19f1afb
f316a0a
c684ef1
7f36241
8cf0660
2abefd5
8cc05e2
1bde152
470acfe
ce21d90
83fa370
2b77739
de09cec
8ad9545
251d607
703aaf8
43e451b
9ec4a41
201a89b
cc164d6
1bb1534
6c6c8ab
42e58ae
475c896
1dae04a
62224cf
a35600d
b6f0397
fcc1dd2
5abf2a8
9d50ac0
8628c24
a836a96
a537805
f7af41f
1af4643
4d929d9
2298988
bf1c6ee
5d87db2
fd716b9
2dd2045
7ba960e
84833e7
a944b4f
4d197ea
08092fe
d8986c5
548dcf1
1dd1159
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Wait, why not just
return type.id() == type_id::STRUCT;
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.
The other functions are necessary for doing the
type_dispatch
cleanly. Seems reasonable to add this in with them, if not I can remove.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.
As for the others, you can just use
std::is_same_v<T, cudf::struct_view>
directly.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.
#9452 (comment) -- I'm not sure which solution is correct at this point.
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.
From my observation, the type dispatching here can be removed completely. So we just need to keep the
constexpr inline bool is_struct()
and this function just doesreturn type.id() == type_id::STRUCT;
. Correct me if this breaks the code.