Skip to content

Commit a9cd742

Browse files
committed
add a warning in the console. No need to do more
1 parent f4cd59a commit a9cd742

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
@@ -68,10 +68,10 @@ function getWorker() {
6868
worker.onmessage = ({ data }: { data: ParquetMessage | SortParquetMessage }) => {
6969
const pendingQueryAgent = pending.get(data.queryId)
7070
if (!pendingQueryAgent) {
71-
throw new Error(
71+
console.warn(
7272
`Unexpected: no pending promise found for queryId: ${data.queryId.toString()}`,
7373
)
74-
// TODO(SL): should never happen. But if it does, I'm not sure if throwing an error here helps.
74+
return
7575
}
7676
if (pendingQueryAgent.kind === 'query') {
7777
const { resolve, reject, onChunk } = pendingQueryAgent

0 commit comments

Comments
 (0)