Skip to content

Commit

Permalink
Add macro hygene test
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Oct 22, 2024
1 parent 4f89ade commit 1099c72
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions datafusion/core/tests/macro_hygiene/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,13 @@ mod plan_datafusion_err {
plan_datafusion_err!("foo");
}
}

mod record_batch {
// NO other imports!
use datafusion_common::record_batch;

#[test]
fn test_macro() {
record_batch!(("column_name", Int32, vec![1, 2, 3])).unwrap();
}
}

0 comments on commit 1099c72

Please sign in to comment.