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!


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