-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I have been working to integrate datafusion into sqlrooms, and also playing with the datafusion-wasm-playground, and have been able to get both to panic with relatively simple queries. In both these cases I am trying to run datafusion in the browser.
in the hosted version of datafusion-wasm-playground, I ran CREATE TABLE test1 AS VALUES (1.1), (2.2)
This gave me two errors in the console:
index-8b5M9DHH.js:12 panicked at /home/wayne/repo/arrow-datafusion/datafusion/physical-plan/src/lib.rs:721:18:
there is no reactor running, must be called from the context of a Tokio 1.x runtime
Stack:
Error
at Ry (https://datafusion-contrib.github.io/datafusion-wasm-playground/assets/index-8b5M9DHH.js:9:1770)
at https://datafusion-contrib.github.io/datafusion-wasm-playground/assets/datafusion_wasm_bg-X0TXhe2e.wasm:wasm-function[25985]:0x1a44735
at https://datafusion-contrib.github.io/datafusion-wasm-playground/assets/datafusion_wasm_bg-X0TXhe2e.wasm:wasm-function[13862]:0x186230b
at https://datafusion-contrib.github.io/datafusion-wasm-playground/assets/datafusion_wasm_bg-X0TXhe2e.wasm:wasm-function[20487]:0x19bc4ed
at https://datafusion-contrib.github.io/datafusion-wasm-playground/assets/datafusion_wasm_bg-X0TXhe2e.wasm:wasm-function[1962]:0xdd1992
at https://datafusion-contrib.github.io/datafusion-wasm-playground/assets/datafusion_wasm_bg-X0TXhe2e.wasm:wasm-function[249]:0x61d894
at https://datafusion-contrib.github.io/datafusion-wasm-playground/assets/datafusion_wasm_bg-X0TXhe2e.wasm:wasm-function[8529]:0x15fbd71
at https://datafusion-contrib.github.io/datafusion-wasm-playground/assets/datafusion_wasm_bg-X0TXhe2e.wasm:wasm-function[22214]:0x19df344
at https://datafusion-contrib.github.io/datafusion-wasm-playground/assets/datafusion_wasm_bg-X0TXhe2e.wasm:wasm-function[22213]:0x19df336
at xy (https://datafusion-contrib.github.io/datafusion-wasm-playground/assets/index-8b5M9DHH.js:9:336)
and
Yb.console.error @ index-8b5M9DHH.js:12
datafusion_wasm_bg-X0TXhe2e.wasm:0x1862331 Uncaught RuntimeError: unreachable
at datafusion_wasm_bg-X0TXhe2e.wasm:0x1862331
at datafusion_wasm_bg-X0TXhe2e.wasm:0x19bc4ed
at datafusion_wasm_bg-X0TXhe2e.wasm:0xdd1992
at datafusion_wasm_bg-X0TXhe2e.wasm:0x61d894
at datafusion_wasm_bg-X0TXhe2e.wasm:0x15fbd71
at datafusion_wasm_bg-X0TXhe2e.wasm:0x19df344
at datafusion_wasm_bg-X0TXhe2e.wasm:0x19df336
at xy (index-8b5M9DHH.js:9:336)
at a (index-8b5M9DHH.js:9:115)
Some quick research indicates that there is some ways to emulate tokio behavior in the browser, for example this package: https://github.com/cunarist/tokio-with-wasm
Offhand it isn't obvious how to use this library to replace tokio for wasm cases.
Metadata
Metadata
Assignees
Labels
No labels