unable to encode table key: *tree.DJSON error during CREATE STATISTICS #63387
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-queries
SQL Queries Team
Describe the problem
Running
CREATE STATISTICS ...
results in the errorERROR: unable to encode table key: *tree.DJSON
when partial indexes get involved.To Reproduce
CREATE STATISTICS policy_stats FROM policies;
ERROR: unable to encode table key: *tree.DJSON
Expected behavior
I expect no error to occur.
Additional data / screenshots
Output of
SHOW STATISTICS FOR TABLE policies;
:Environment:
-
cockroach sql
The text was updated successfully, but these errors were encountered: