Skip to content

Conversation

@akshayutture-augment
Copy link

@akshayutture-augment akshayutture-augment commented Nov 14, 2025

Test 9


Replicated from ai-code-review-evaluation/grafana-cursor#9


Note

Replaces external duck DB usage with an internal stubbed SQL DB and disables SQL expressions behind a feature flag; cleans up related dependencies.

  • Expr SQL:
    • Introduces pkg/expr/sql/db.go with an internal in-memory DB (stub methods: TablesList, RunCommands, QueryFramesInto).
    • Updates pkg/expr/sql/parser.go to use NewInMemoryDB() instead of external duck DB; removes duck import.
    • Updates pkg/expr/sql_command.go to execute queries via internal sql.NewInMemoryDB().
    • Adds feature gating in pkg/expr/reader.go for QueryTypeSQL; when disabled, returns sqlExpressions is not implemented.
  • Dependencies:
    • Removes github.com/scottlepp/go-duck and related transitive entries; prunes other unused indirect deps in go.mod/go.sum.

Written by Cursor Bugbot for commit ea71201. Configure here.

… vulnerability (#94942)

* disable sql expressions

remove duckdb ref

* Run `make update-workspace`

---------

Co-authored-by: Scott Lepper <[email protected]>
@akshayutture-augment
Copy link
Author

cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no bugs!


@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update or ping for review. Thank you for your contributions!

@github-actions github-actions bot added the stale label Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants