cockroachdb / cockroachdb/cockroach
unexpected error when starting core changefeed with parquet format
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
**Describe the problem**
```
> create table t (pk int primary key, v decimal);
> create changefeed for t with format = 'parquet';
ERROR: internal error: Expected a sink with encoder for, found *changefeedccl.bufferSink
SQLSTATE: XX000
DETAIL: stack trace:
github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/sink.go:497: EncodeAndEmitRow()
github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/event_processing.go:481: encodeForParquet()
github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/event_processing.go:425: encodeAndEmit()
github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/event_processing.go:379: ConsumeEvent()
github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/changefeed_processors.go:770: tick()
github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/changefeed_processors.go:696: Next()
github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/changefeed_processors.go:1466: Next()
github.com/cockroachdb/cockroach/pkg/sql/execinfra/base.go:198: Run()
github.com/cockroachdb/cockroach/pkg/sql/execinfra/processorsbase.go:732: Run()
github.com/cockroachdb/cockroach/pkg/sql/flowinfra/flow.go:579: Run()
github.com/cockroachdb/cockroach/pkg/sql/distsql_running.go:928: Run()
github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/changefeed_dist.go:328: func1()
github.com/cockroachdb/cockroach/pkg/util/ctxgroup/ctxgroup.go:168: func1()
golang.org/x/sync/errgroup/external/org_golang_x_sync/errgroup/errgroup.go:78: func1()
src/runtime/asm_arm64.s:1222: goexit()
HINT: You have encountered an unexpected error.
Please check the public issue tracker to check whether this problem is
already tracked. If you cannot find it there, please report the error
with details by creating a new issue.
If you would rather not post publicly, please contact us directly
using the support form.
We appreciate your feedback.
```
Jira issue: CRDB-42304
Epic CRDB-41786
Contributor guide
Assessment
This issue has not been assessed yet.