Skip to content

Commit

Permalink
feat: Update deno library to use main risingwavelabs repo
Browse files Browse the repository at this point in the history
  • Loading branch information
bakjos committed Mar 20, 2024
1 parent c3a9d04 commit e55f8c0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 36 deletions.
49 changes: 19 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ arrow-flight = "50"
arrow-select = "50"
arrow-ord = "50"
arrow-row = "50"
# FIXME: This should be changed to the official crate once it's published.
arrow-udf-deno = { git = "https://github.com/bakjos/arrow-udf.git", rev = "3a00425" }
arrow-udf-js = "0.1"
arrow-udf-js-deno = { git = "https://github.com/risingwavelabs/arrow-udf.git", rev = "1381842" }
arrow-udf-wasm = { version = "0.2", features = ["build"] }
arrow-udf-python = { git = "https://github.com/risingwavelabs/arrow-udf.git", rev = "6c32f71" }
arrow-array-deltalake = { package = "arrow-array", version = "48.0.1" }
Expand Down
4 changes: 2 additions & 2 deletions src/expr/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ ignored = ["workspace-hack", "ctor"]
normal = ["workspace-hack", "ctor"]

[features]
embedded-deno-udf = ["arrow-udf-deno"]
embedded-deno-udf = ["arrow-udf-js-deno"]
embedded-python-udf = ["arrow-udf-python"]

[dependencies]
anyhow = "1"
arrow-array = { workspace = true }
arrow-schema = { workspace = true }
arrow-udf-deno = { workspace = true, optional = true }
arrow-udf-js = { workspace = true }
arrow-udf-js-deno = { workspace = true, optional = true }
arrow-udf-python = { workspace = true, optional = true }
arrow-udf-wasm = { workspace = true }
async-trait = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/expr/core/src/expr/expr_udf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use std::time::Duration;
use anyhow::{Context, Error};
use arrow_schema::{Field, Fields, Schema};
#[cfg(feature = "embedded-deno-udf")]
use arrow_udf_deno::{CallMode as DenoCallMode, Runtime as DenoRuntime};
use arrow_udf_js_deno::{CallMode as DenoCallMode, Runtime as DenoRuntime};
use arrow_udf_js::{CallMode as JsCallMode, Runtime as JsRuntime};
#[cfg(feature = "embedded-python-udf")]
use arrow_udf_python::{CallMode as PythonCallMode, Runtime as PythonRuntime};
Expand Down
2 changes: 1 addition & 1 deletion src/expr/core/src/table_function/user_defined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use anyhow::Context;
use arrow_array::RecordBatch;
use arrow_schema::{Field, Fields, Schema, SchemaRef};
#[cfg(feature = "embedded-deno-udf")]
use arrow_udf_deno::{CallMode as DenoCallMode, Runtime as DenoRuntime};
use arrow_udf_js_deno::{CallMode as DenoCallMode, Runtime as DenoRuntime};
use arrow_udf_js::{CallMode as JsCallMode, Runtime as JsRuntime};
#[cfg(feature = "embedded-python-udf")]
use arrow_udf_python::{CallMode as PythonCallMode, Runtime as PythonRuntime};
Expand Down

0 comments on commit e55f8c0

Please sign in to comment.