cockroachdb / cockroachdb/cockroach

sql: emit enable/disable events from information_schema.crdb_enable_statement_hints

Open
#172,620 0 comments 0 reactions 0 assignees View on GitHub
A-plan-management A-statement-hint C-enhancement T-sql-queries
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

We currently emit events when we create and delete statement hints. But we do not emit events when enabling or disabling statement hints using `information_schema.crdb_enable_statement_hints`. We should also emit events from this builtin, to help with troubleshooting.

Jira issue: CRDB-65867

Epic: CRDB-66266

Contributor guide

Open the contributing guide

Research direction

Start at the information_schema.crdb_enable_statement_hints builtin and trace the existing event paths for creating and deleting statement hints. Find the builtin's implementation and relevant SQL or event tests; done means enabling and disabling hints each produce the expected troubleshooting events, with coverage for both paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, sql
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.