Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a54e81f

Browse filesBrowse files
authored
Update sql interface for 2.5.0 (#696)
1 parent 746408e commit a54e81f
Copy full SHA for a54e81f

File tree

8 files changed

+31
-7
lines changed
Filter options

8 files changed

+31
-7
lines changed

‎.github/workflows/package-extension.yml

Copy file name to clipboardExpand all lines: .github/workflows/package-extension.yml
+1-1Lines 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.5.0"
7+
default: "2.5.1"
88

99
jobs:
1010
build:

‎pgml-dashboard/Cargo.toml

Copy file name to clipboardExpand all lines: pgml-dashboard/Cargo.toml
+1-1Lines 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.5.0"
3+
version = "2.5.1"
44
edition = "2021"
55
authors = ["PostgresML <team@postgresml.org>"]
66
license = "MIT"

‎pgml-dashboard/static/docs/guides/setup/developers.md

Copy file name to clipboardExpand all lines: pgml-dashboard/static/docs/guides/setup/developers.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ SELECT pgml.version();
127127
postgres=# select pgml.version();
128128
version
129129
-------------------
130-
2.5.0
130+
2.5.1
131131
(1 row)
132132
```
133133

‎pgml-dashboard/static/docs/guides/setup/v2/installation.md

Copy file name to clipboardExpand all lines: pgml-dashboard/static/docs/guides/setup/v2/installation.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ SELECT pgml.version();
217217
postgres=# select pgml.version();
218218
version
219219
-------------------
220-
2.5.0
220+
2.5.1
221221
(1 row)
222222
```
223223

‎pgml-extension/Cargo.lock

Copy file name to clipboardExpand all lines: pgml-extension/Cargo.lock
+1-1Lines 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

Copy file name to clipboardExpand all lines: pgml-extension/Cargo.toml
+1-1Lines 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.5.0"
3+
version = "2.5.1"
44
edition = "2021"
55

66
[lib]
+24Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
-- src/api.rs:575
2+
-- pgml::api::embed
3+
CREATE FUNCTION pgml."embed"(
4+
"transformer" TEXT, /* &str */
5+
"inputs" TEXT[], /* alloc::vec::Vec<&str> */
6+
"kwargs" jsonb DEFAULT '{}' /* pgrx::datum::json::JsonB */
7+
) RETURNS real[][] /* alloc::vec::Vec<alloc::vec::Vec<f32>> */
8+
IMMUTABLE STRICT PARALLEL SAFE
9+
LANGUAGE c /* Rust */
10+
AS 'MODULE_PATHNAME', 'embed_batch_wrapper';
11+
12+
-- src/api.rs:584
13+
-- pgml::api::chunk
14+
CREATE FUNCTION pgml."chunk"(
15+
"splitter" TEXT, /* &str */
16+
"text" TEXT, /* &str */
17+
"kwargs" jsonb DEFAULT '{}' /* pgrx::datum::json::JsonB */
18+
) RETURNS TABLE (
19+
"chunk_index" bigint, /* i64 */
20+
"chunk" TEXT /* alloc::string::String */
21+
)
22+
IMMUTABLE STRICT PARALLEL SAFE
23+
LANGUAGE c /* Rust */
24+
AS 'MODULE_PATHNAME', 'chunk_wrapper';

‎pgml-extension/src/bindings/xgboost.rs

Copy file name to clipboardExpand all lines: pgml-extension/src/bindings/xgboost.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn fit(
164164

165165
let seed = match hyperparams.get("random_state") {
166166
Some(value) => value.as_u64().unwrap(),
167-
None => 0
167+
None => 0,
168168
};
169169
let learning_params = learning::LearningTaskParametersBuilder::default()
170170
.objective(objective)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.