Open angelapwen opened 3 years ago
We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB!
Describe the problem In creating a SQL generator method, we use the
tree.ValueGenerator
interface. ItsClose()
method currently does not have a return value.This poses a problem when using the new Internal Executor's streaming iterator pattern (added in #59330) to generate builtin function. Its
Close()
method must be called to close the iterator and returns an error, but this error cannot be surfaced in the generator builtin caller (and the iterator may potentially be left open).This problem was originally discussed in context of #60922: link
Jira issue: CRDB-3064