Skip to content

Commit d82ce74

Browse files
committed
[branch-46] Fix wasm32 build on version 46
1 parent d5ca830 commit d82ce74

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/rust.yml

+4
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ jobs:
259259
uses: ./.github/actions/setup-builder
260260
with:
261261
rust-version: stable
262+
- name: Install dependencies
263+
run: |
264+
apt-get update -qq
265+
apt-get install -y -qq clang
262266
- name: Install wasm-pack
263267
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
264268
- name: Build with wasm-pack

datafusion/core/src/datasource/file_format/parquet.rs

-2
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,6 @@ impl FileFormat for ParquetFormat {
469469
}
470470

471471
/// Coerces the file schema if the table schema uses a view type.
472-
#[cfg(not(target_arch = "wasm32"))]
473472
pub fn coerce_file_schema_to_view_type(
474473
table_schema: &Schema,
475474
file_schema: &Schema,
@@ -519,7 +518,6 @@ pub fn coerce_file_schema_to_view_type(
519518
/// If the table schema uses a string type, coerce the file schema to use a string type.
520519
///
521520
/// See [ParquetFormat::binary_as_string] for details
522-
#[cfg(not(target_arch = "wasm32"))]
523521
pub fn coerce_file_schema_to_string_type(
524522
table_schema: &Schema,
525523
file_schema: &Schema,

datafusion/wasmtest/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ chrono = { version = "0.4", features = ["wasmbind"] }
4545
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
4646
# code size when deploying.
4747
console_error_panic_hook = { version = "0.1.1", optional = true }
48-
datafusion = { workspace = true }
48+
datafusion = { workspace = true, features = ["parquet"] }
4949
datafusion-common = { workspace = true, default-features = true }
5050
datafusion-execution = { workspace = true }
5151
datafusion-expr = { workspace = true }

0 commit comments

Comments
 (0)