Skip to content

Commit 88d57b9

Browse files
committed
update
1 parent d5e7ddd commit 88d57b9

138 files changed

Lines changed: 63 additions & 19139 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ members = [
1414
"src/servicer",
1515
"src/sqlparser",
1616
"src/streaming_runtime",
17+
"src/streaming_planner",
1718
"src/wasm_runtime",
1819
]
1920

@@ -50,6 +51,7 @@ protocol = { path = "./protocol" }
5051
function-stream-config = { path = "src/config" }
5152
function-stream-logger = { path = "src/logger" }
5253
function-stream-runtime-common = { path = "src/runtime_common" }
54+
function-stream-streaming-planner = { path = "src/streaming_planner" }
5355
prost = "0.13"
5456
rdkafka = { version = "0.38", features = ["cmake-build", "ssl", "gssapi", "curl"] }
5557
crossbeam-channel = "0.5"

src/catalog_storage/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Persistent catalog storage implementations.
22
//!
33
//! The stream catalog manager and task persistence (`stream_catalog/`, `task/`) live in this
4-
//! package and are compiled as part of `function-stream` via `#[path]` in `src/storage/mod.rs`.
4+
//! package and are compiled as part of `function-stream` via `#[path]` in `src/storage.rs`.
55
66
pub mod memory;
77
pub mod rocksdb;

src/coordinator/src/legacy/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
mod analyze;
1414
#[allow(clippy::module_inception)]
1515
mod coordinator;
16-
mod sql_classify;
1716
mod dataset;
1817
mod execution;
1918
mod execution_context;
2019
mod plan;
2120
mod runtime_context;
2221
mod statement;
22+
mod sql_classify;
2323
mod streaming_table_options;
2424
mod tool;
2525

src/coordinator/src/legacy/sql_classify.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
1616
use std::collections::HashMap;
1717

18-
use datafusion::common::{Result, plan_err};
18+
use datafusion::common::{plan_err, Result};
1919
use datafusion::error::DataFusionError;
2020
use datafusion::sql::sqlparser::ast::{
2121
ObjectType, ShowCreateObject, SqlOption, Statement as DFStatement,
2222
};
2323

24-
use super::statement::{
24+
use super::{
2525
CreateFunction, CreateTable, DropFunction, DropStreamingTableStatement, DropTableStatement,
2626
ShowCatalogTables, ShowCreateStreamingTable, ShowCreateTable, ShowFunctions,
2727
ShowStreamingTables, StartFunction, Statement, StopFunction, StreamingTableStatement,
@@ -298,8 +298,7 @@ mod tests {
298298

299299
#[test]
300300
fn test_insert_not_supported() {
301-
let mut stmts =
302-
parse_sql("INSERT INTO sink SELECT * FROM src").unwrap();
301+
let mut stmts = parse_sql("INSERT INTO sink SELECT * FROM src").unwrap();
303302
let err = classify_statement(stmts.remove(0)).unwrap_err();
304303
let msg = err.to_string();
305304
assert!(

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ pub use function_stream_logger as logging;
2121
pub mod runtime;
2222
#[path = "servicer/src/legacy/mod.rs"]
2323
pub mod server;
24-
pub mod sql;
24+
pub use function_stream_streaming_planner as sql;
2525
pub mod storage;

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub use function_stream_logger as logging;
1919
mod runtime;
2020
#[path = "servicer/src/legacy/mod.rs"]
2121
mod server;
22-
mod sql;
22+
pub use function_stream_streaming_planner as sql;
2323
mod storage;
2424

2525
use anyhow::{Context, Result};

src/runtime/mod.rs

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/runtime_common/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ path = "src/lib.rs"
99

1010
[dependencies]
1111
arrow-array = "55"
12+
bincode = { version = "2", features = ["serde"] }
1213
parking_lot = "0.12"
1314
serde = { version = "1.0", features = ["derive"] }
1415
tokio = { version = "1.0", features = ["sync"] }

src/runtime_common/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
1515
pub mod common;
1616
pub mod memory;
17+
pub mod streaming_protocol;

0 commit comments

Comments
 (0)