Skip to content

Conversation

@akshayutture-augment
Copy link

… vulnerability (#94942)

* disable sql expressions

remove duckdb ref

* Run `make update-workspace`

---------

Co-authored-by: Scott Lepper <[email protected]>
Copy link

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

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.

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +194 to +199
func enableSqlExpressions(h *ExpressionQueryReader) bool {
enabled := !h.features.IsEnabledGlobally(featuremgmt.FlagSqlExpressions)
if enabled {
return false
}
return false

Choose a reason for hiding this comment

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

P1 Badge Return actual feature flag state

The new SQL query branch now calls enableSqlExpressions, but that helper (lines 194‑199) always returns false regardless of whether featuremgmt.FlagSqlExpressions is enabled. As a result the reader immediately returns "sqlExpressions is not implemented" for every SQL query, so the SQL expression feature can no longer be used at all. The helper should return the flag state instead of unconditionally disabling the command.

Useful? React with 👍 / 👎.

Comment on lines +12 to +21
func (db *DB) TablesList(rawSQL string) ([]string, error) {
return nil, errors.New("not implemented")
}

func (db *DB) RunCommands(commands []string) (string, error) {
return "", errors.New("not implemented")
}

func (db *DB) QueryFramesInto(name string, query string, frames []*data.Frame, f *data.Frame) error {
return errors.New("not implemented")

Choose a reason for hiding this comment

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

P1 Badge SQL DB methods all return not implemented

The new pkg/expr/sql/db.go replaces the previous duckdb-backed implementation with stubs whose RunCommands, QueryFramesInto, and even TablesList methods simply return errors.New("not implemented"). Both sql.TablesList (used in NewSQLCommand) and SQLCommand.Execute now rely on these methods, so SQL expressions fail either at construction (TablesList errors) or when executing (QueryFramesInto errors). This removes the functionality entirely and needs a real implementation or the previous backend.

Useful? React with 👍 / 👎.

@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 14, 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