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: elide attribute type with new StaticallyTypedAttrInterface #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ingomueller-net
Copy link
Collaborator

No description provided.

@ingomueller-net ingomueller-net force-pushed the statically-typed-attr branch 2 times, most recently from d3c98d6 to 02f7193 Compare January 21, 2025 09:12
@ingomueller-net ingomueller-net changed the title WIP: Elide attribute type with new StaticallyTypedAttrInterface feat: elide attribute type with new StaticallyTypedAttrInterface [WIP] Jan 21, 2025
@ingomueller-net ingomueller-net changed the title feat: elide attribute type with new StaticallyTypedAttrInterface [WIP] feat: elide attribute type with new StaticallyTypedAttrInterface Jan 21, 2025
This allows to omit the type of an attribute from the assembly if it can
be inferred from the attribute value. For example, the type is redundant
in `#substrait.timestamp<100us> : !substrait.timestamp`. The built-in
`TypedAttrInterface`, however, forces the appearance of the type in the
assembly. The new interface is almost identical but does not enforce it.
The PR also makes the two timestamp attributes implement that interface.

Signed-off-by: Ingo Müller <[email protected]>
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.

1 participant