Skip to content

Commit 4110ce5

Browse files
authored
restore API compatibility (#638)
1 parent dcb6d71 commit 4110ce5

File tree

9 files changed

+11
-7
lines changed

9 files changed

+11
-7
lines changed

.github/workflows/package-extension.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
packageVersion:
7-
default: "2.4.5"
7+
default: "2.4.6"
88

99
jobs:
1010
build:

pgml-dashboard/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pgml-dashboard/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgml-dashboard"
3-
version = "2.4.5"
3+
version = "2.4.6"
44
edition = "2021"
55
authors = ["Lev Kokotov <lev@postgresml.org>"]
66
license = "MIT"

pgml-docs/docs/developer_guide/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ That's it, PostgresML is ready. You can validate the installation by running:
125125
postgres=# select pgml.version();
126126
version
127127
-------------------
128-
2.4.5
128+
2.4.6
129129
(1 row)
130130
```
131131

pgml-docs/docs/user_guides/setup/v2/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ That's it, PostgresML is ready. You can validate the installation by running:
215215
postgres=# select pgml.version();
216216
version
217217
-------------------
218-
2.4.5
218+
2.4.6
219219
(1 row)
220220
```
221221

pgml-extension/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pgml-extension/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgml"
3-
version = "2.4.5"
3+
version = "2.4.6"
44
edition = "2021"
55

66
[lib]

pgml-extension/sql/pgml--2.4.5--2.4.6.sql

Whitespace-only changes.

pgml-extension/src/api.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,10 +570,12 @@ pub fn embed(transformer: &str, text: &str, kwargs: default!(JsonB, "'{}'")) ->
570570

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

583585
#[cfg(feature = "python")]
584586
#[pg_extern(immutable, parallel_safe, name = "transform")]
587+
#[allow(unused_variables)] // cache is maintained for api compatibility
585588
pub fn transform_string(
586589
task: String,
587590
args: default!(JsonB, "'{}'"),
588591
inputs: default!(Vec<String>, "ARRAY[]::TEXT[]"),
592+
cache: default!(bool, false)
589593
) -> JsonB {
590594
let mut task_map = HashMap::new();
591595
task_map.insert("task", task);

0 commit comments

Comments
 (0)
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