Skip to content

Call parameterized views from sql: Execution#3933

Closed
mamcx wants to merge 3 commits intomasterfrom
mamcx/sql-call-views-expr
Closed

Call parameterized views from sql: Execution#3933
mamcx wants to merge 3 commits intomasterfrom
mamcx/sql-call-views-expr

Conversation

@mamcx
Copy link
Copy Markdown
Contributor

@mamcx mamcx commented Dec 27, 2025

Description of Changes

Second of a set PRs for closing of #3489.

Stacked against #3791

Expected complexity level and risk: 2

Need to change to passing tx mutable to allow for internal params creation.

Testing

  • Unit test for sql statements
  • TODO: For evaluation

@mamcx mamcx self-assigned this Dec 27, 2025
@mamcx mamcx added the Do not merge Do not merge PRs with this label without coordinating further label Dec 27, 2025

// Verify calling views with params
// TODO: All testing use the old query compiler, so we can't test this yet.
#[test]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note this @joshua-spacetime

Comment thread crates/expr/src/lib.rs
Err(Unresolved::Literal.into())
}
(SqlExpr::Lit(SqlLiteral::Str(v) | SqlLiteral::Num(v) | SqlLiteral::Hex(v)), Some(ty)) => Ok(Expr::Value(
(SqlExpr::Lit(SqlLiteral::Num(v)), Some(ty)) => {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fix parsing for num-like literals

ctx.db.player().chunk_index().filter(chunk_index)
}*/

// ─────────────────────────────────────────────────────────────────────────────
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note we can't create yet view with params in modules?

@mamcx mamcx force-pushed the mamcx/sql-call-views-expr branch from 4c0a493 to 4289cd8 Compare December 27, 2025 19:58
@cloutiertyler
Copy link
Copy Markdown
Contributor

This is substantially out of date. I'm going to close this and create an issue.

@cloutiertyler cloutiertyler added the close-stale-pr-create-issue Indicates that the PR is substantially out of date, and should become an issue to reimplement. label Apr 14, 2026
@clockwork-labs-bot
Copy link
Copy Markdown
Collaborator

Closing this stale PR in favor of #4826, which tracks reimplementing the work on top of current master. Keeping this PR around as historical context and source material.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

close-stale-pr-create-issue Indicates that the PR is substantially out of date, and should become an issue to reimplement. Do not merge Do not merge PRs with this label without coordinating further

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants