Skip to content

restore API compatibility #638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/package-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
packageVersion:
default: "2.4.5"
default: "2.4.6"

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion pgml-dashboard/Cargo.lock

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

2 changes: 1 addition & 1 deletion pgml-dashboard/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pgml-dashboard"
version = "2.4.5"
version = "2.4.6"
edition = "2021"
authors = ["Lev Kokotov <lev@postgresml.org>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion pgml-docs/docs/developer_guide/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ That's it, PostgresML is ready. You can validate the installation by running:
postgres=# select pgml.version();
version
-------------------
2.4.5
2.4.6
(1 row)
```

Expand Down
2 changes: 1 addition & 1 deletion pgml-docs/docs/user_guides/setup/v2/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ That's it, PostgresML is ready. You can validate the installation by running:
postgres=# select pgml.version();
version
-------------------
2.4.5
2.4.6
(1 row)
```

Expand Down
2 changes: 1 addition & 1 deletion pgml-extension/Cargo.lock

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

2 changes: 1 addition & 1 deletion pgml-extension/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pgml"
version = "2.4.5"
version = "2.4.6"
edition = "2021"

[lib]
Expand Down
Empty file.
4 changes: 4 additions & 0 deletions pgml-extension/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,12 @@ pub fn embed(transformer: &str, text: &str, kwargs: default!(JsonB, "'{}'")) ->

#[cfg(feature = "python")]
#[pg_extern(immutable, parallel_safe, name = "transform")]
#[allow(unused_variables)] // cache is maintained for api compatibility
pub fn transform_json(
task: JsonB,
args: default!(JsonB, "'{}'"),
inputs: default!(Vec<String>, "ARRAY[]::TEXT[]"),
cache: default!(bool, false)
) -> JsonB {
JsonB(crate::bindings::transformers::transform(
&task.0, &args.0, &inputs,
Expand All @@ -582,10 +584,12 @@ pub fn transform_json(

#[cfg(feature = "python")]
#[pg_extern(immutable, parallel_safe, name = "transform")]
#[allow(unused_variables)] // cache is maintained for api compatibility
pub fn transform_string(
task: String,
args: default!(JsonB, "'{}'"),
inputs: default!(Vec<String>, "ARRAY[]::TEXT[]"),
cache: default!(bool, false)
) -> JsonB {
let mut task_map = HashMap::new();
task_map.insert("task", task);
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy