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 8fc2c6a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 38 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
4 changes: 2 additions & 2 deletions src/expr/core/src/expr/expr_udf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ 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::{CallMode as JsCallMode, Runtime as JsRuntime};
#[cfg(feature = "embedded-deno-udf")]
use arrow_udf_js_deno::{CallMode as DenoCallMode, Runtime as DenoRuntime};
#[cfg(feature = "embedded-python-udf")]
use arrow_udf_python::{CallMode as PythonCallMode, Runtime as PythonRuntime};
use arrow_udf_wasm::Runtime as WasmRuntime;
Expand Down
4 changes: 2 additions & 2 deletions src/expr/core/src/table_function/user_defined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ use std::sync::Arc;
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::{CallMode as JsCallMode, Runtime as JsRuntime};
#[cfg(feature = "embedded-deno-udf")]
use arrow_udf_js_deno::{CallMode as DenoCallMode, Runtime as DenoRuntime};
#[cfg(feature = "embedded-python-udf")]
use arrow_udf_python::{CallMode as PythonCallMode, Runtime as PythonRuntime};
use cfg_or_panic::cfg_or_panic;
Expand Down

0 comments on commit 8fc2c6a

Please sign in to comment.