Skip to content

feat: add explicit emit output grammar and parsing support#173

Open
eliot1480 wants to merge 13 commits into
mainfrom
eseol/QSEM-585/add-explicit-emit-output-grammar-and-parsing
Open

feat: add explicit emit output grammar and parsing support#173
eliot1480 wants to merge 13 commits into
mainfrom
eseol/QSEM-585/add-explicit-emit-output-grammar-and-parsing

Conversation

@eliot1480

Copy link
Copy Markdown
Contributor

Description

Added explicit output grammar and parsing support. When the parser encounters an emit, it will parse that emit and determine if it is a direct emit or explicit emit using parse_output_emit. I will be implementing textifying from substrait in another PR.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Example update
  • Other (please describe)

Testing

  • Added tests for new functionality
  • All existing tests pass
  • Ran examples to verify behavior

Checklist

  • Code follows Rust conventions
  • Documentation updated if needed
  • No breaking changes (or breaking changes documented)
  • Pre-commit hooks pass

Related Issues

Closes #(34)
#34

@eliot1480
eliot1480 requested review from a team and wackywendell as code owners July 8, 2026 19:03

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e486d22ab1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/parser/relations.rs Outdated

@wackywendell wackywendell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The Grammar update makes sense, and scoping it to just Read is reasonable, good work there!

That said, even if we're just scoping it to Read for this PR, it should be architected as something more general that we can adopt for other relations and maintain clarity and orthogonality around the relevant structures, and I have a few suggestions along those lines.

Comment thread src/parser/expression_grammar.pest Outdated
Comment thread src/parser/relations.rs Outdated
Comment thread GRAMMAR.md Outdated
Comment thread GRAMMAR.md Outdated
Comment thread src/textify/rels.rs Outdated
Comment thread src/textify/rels.rs Outdated
Comment thread src/textify/rels.rs Outdated
eliot1480 and others added 9 commits July 14, 2026 16:49
Co-authored-by: Wendell Smith <wendell.smith@datadoghq.com>
Co-authored-by: Wendell Smith <wendell.smith@datadoghq.com>
Co-authored-by: Wendell Smith <wendell.smith@datadoghq.com>
Co-authored-by: Wendell Smith <wendell.smith@datadoghq.com>
…sing' of github.com:DataDog/substrait-explain into eseol/QSEM-585/add-explicit-emit-output-grammar-and-parsing
…ake output syntax more friendly for other relations
@eliot1480
eliot1480 requested a review from wackywendell July 15, 2026 16: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.

2 participants