Skip to content

Conversation

@nwt
Copy link
Member

@nwt nwt commented Oct 7, 2025

cast() is generally sufficient though we may add a variant that doesn't add missing fields with a null value when casting records.

runtime/sam/expr.ConstShaper has to stick around because it's used in runtime/sam/op/fuse. We can remove it in favor of runtime/sam/expr/function.cast after we enhance that latter to handle union-typed record fields in the target type.

cast() is generally sufficient though we may add a variant that doesn't
add missing fields with a null value when casting records.

runtime/sam/expr.ConstShaper has to stick around because it's used in
runtime/sam/op/fuse.  We can remove it in favor of
runtime/sam/expr/function.cast after we enhance that latter to handle
union-typed record fields in the target type.
Copy link
Collaborator

@mattnibs mattnibs left a comment

Choose a reason for hiding this comment

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

Should we remove the docs as well or just keep them?

@nwt
Copy link
Member Author

nwt commented Oct 8, 2025

@mattnibs: I don't think there are any right now. I get no output from this:

git grep '(crop|fill|fit|order|shape)\(' -- book/src

@nwt nwt merged commit 3c7aa82 into main Oct 8, 2025
3 checks passed
@nwt nwt deleted the remove-shaping-functions branch October 8, 2025 00:42
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