Skip to content

Commit c862433

Browse files
committed
add a warning in the console. No need to do more
1 parent 56859e4 commit c862433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/components/src/workers/parquetWorkerClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ function getWorker() {
2727
worker.onmessage = ({ data }: { data: ParquetMessage | SortParquetMessage }) => {
2828
const pendingQueryAgent = pending.get(data.queryId)
2929
if (!pendingQueryAgent) {
30-
throw new Error(
30+
console.warn(
3131
`Unexpected: no pending promise found for queryId: ${data.queryId.toString()}`,
3232
)
33-
// TODO(SL): should never happen. But if it does, I'm not sure if throwing an error here helps.
33+
return
3434
}
3535
if (pendingQueryAgent.kind === 'query') {
3636
const { resolve, reject, onChunk } = pendingQueryAgent

0 commit comments

Comments
 (0)