File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ impl FileFormat for ArrowFormat {
144144 for object in objects {
145145 let r = store. as_ref ( ) . get ( & object. location ) . await ?;
146146 let schema = match r. payload {
147+ #[ cfg( not( target_arch = "wasm32" ) ) ]
147148 GetResultPayload :: File ( mut file, _) => {
148149 let reader = FileReader :: try_new ( & mut file, None ) ?;
149150 reader. schema ( )
Original file line number Diff line number Diff line change @@ -273,6 +273,7 @@ impl FileOpener for ArrowOpener {
273273 None => {
274274 let r = object_store. get ( file_meta. location ( ) ) . await ?;
275275 match r. payload {
276+ #[ cfg( not( target_arch = "wasm32" ) ) ]
276277 GetResultPayload :: File ( file, _) => {
277278 let arrow_reader = arrow:: ipc:: reader:: FileReader :: try_new (
278279 file, projection,
Original file line number Diff line number Diff line change @@ -704,6 +704,7 @@ impl FileOpener for CsvOpener {
704704 let result = store. get_opts ( file_meta. location ( ) , options) . await ?;
705705
706706 match result. payload {
707+ #[ cfg( not( target_arch = "wasm32" ) ) ]
707708 GetResultPayload :: File ( mut file, _) => {
708709 let is_whole_file_scanned = file_meta. range . is_none ( ) ;
709710 let decoder = if is_whole_file_scanned {
Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ impl FileFormat for JsonFormat {
209209
210210 let r = store. as_ref ( ) . get ( & object. location ) . await ?;
211211 let schema = match r. payload {
212+ #[ cfg( not( target_arch = "wasm32" ) ) ]
212213 GetResultPayload :: File ( file, _) => {
213214 let decoder = file_compression_type. convert_read ( file) ?;
214215 let mut reader = BufReader :: new ( decoder) ;
Original file line number Diff line number Diff line change @@ -355,6 +355,7 @@ impl FileOpener for JsonOpener {
355355 let result = store. get_opts ( file_meta. location ( ) , options) . await ?;
356356
357357 match result. payload {
358+ #[ cfg( not( target_arch = "wasm32" ) ) ]
358359 GetResultPayload :: File ( mut file, _) => {
359360 let bytes = match file_meta. range {
360361 None => file_compression_type. convert_read ( file) ?,
You can’t perform that action at this time.
0 commit comments