Skip to content
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: teach ScalarValue and PValue is_instance_of #958

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

danking
Copy link
Member

@danking danking commented Oct 1, 2024

No description provided.

@danking danking requested a review from robert3005 October 1, 2024 18:10
@danking danking enabled auto-merge (squash) October 1, 2024 18:12
(ScalarValue::List(values), DType::List(dtype, _)) => {
values.iter().all(|v| v.is_instance_of(dtype))
}
(ScalarValue::List(values), DType::Struct(structdt, _)) => values
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo, this should be ScalarValue::Struct on left

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rob & Nick argue against adding ScalarValue::Struct b/c field name duplication: https://spiraldb.slack.com/archives/C07BV3GKAJ2/p1727813531212969

@danking danking requested a review from lwwmanning October 1, 2024 22:03
@danking danking merged commit 1aa072c into develop Oct 2, 2024
5 checks passed
@danking danking deleted the dk/scalar_value_is_instance_of branch October 2, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants