Commit 8b08869
committed
feat: Add BigQuery ML CREATE MODEL support
- Refactor `bigframes.core.sql` to a package.
- Add `bigframes.core.sql.ml` for DDL generation.
- Add `bigframes.bigquery.ml` module with `create_model` function.
- Add unit tests for SQL generation.
- Use `_start_query_ml_ddl` for execution.
- Return the created model object using `read_gbq_model`.
- Remove `query` argument, simplify SQL generation logic.
- Fix linting and mypy errors.1 parent c1adfd9 commit 8b08869
File tree
2 files changed
+8
-4
lines changed- bigframes/bigquery/_operations
- tests/unit/core/sql
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
0 commit comments