Skip to content

Commit

Permalink
enable executors in frontend
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
  • Loading branch information
BugenZhao committed Dec 11, 2024
1 parent be1c202 commit 09d605c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

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

8 changes: 8 additions & 0 deletions src/batch/executors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//! Batch executor implementations.
//!
//! To enable executors in this crate, add the following line to your code:
//!
//! ```
//! risingwave_batch_executors::enable!();
//! ```
#![allow(clippy::derive_partial_eq_without_eq)]
#![feature(trait_alias)]
#![feature(exact_size_is_empty)]
Expand Down
2 changes: 1 addition & 1 deletion src/batch/src/executor/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl MockExecutor {
Self {
chunks: VecDeque::new(),
schema,
identity: "MockExecutor".to_string(),
identity: "MockExecutor".to_owned(),
}
}

Expand Down
1 change: 1 addition & 0 deletions src/frontend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ workspace-hack = { path = "../workspace-hack" }
[dev-dependencies]
assert_matches = "1"
expect-test = "1"
risingwave_batch_executors = { workspace = true }
risingwave_expr_impl = { workspace = true }
tempfile = "3"

Expand Down
2 changes: 2 additions & 0 deletions src/frontend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

#[cfg(test)]
risingwave_expr_impl::enable!();
#[cfg(test)]
risingwave_batch_executors::enable!();

#[macro_use]
mod catalog;
Expand Down

0 comments on commit 09d605c

Please sign in to comment.