Skip to content

Commit

Permalink
add roundtrip_expr_api test
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Jul 22, 2024
1 parent ce5b88b commit 438ca71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions datafusion/proto/tests/cases/roundtrip_logical_plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ use datafusion::functions_aggregate::expr_fn::{
count_distinct, covar_pop, covar_samp, first_value, grouping, median, stddev,
stddev_pop, sum, var_pop, var_sample,
};
use datafusion::functions_array::map::map;
use datafusion::prelude::*;
use datafusion::test_util::{TestTableFactory, TestTableProvider};
use datafusion_common::config::TableOptions;
Expand Down Expand Up @@ -704,6 +705,10 @@ async fn roundtrip_expr_api() -> Result<()> {
bool_or(lit(true)),
array_agg(lit(1)),
array_agg(lit(1)).distinct().build().unwrap(),
map(
vec![lit(1), lit(2), lit(3)],
vec![lit(10), lit(20), lit(30)],
),
];

// ensure expressions created with the expr api can be round tripped
Expand Down

0 comments on commit 438ca71

Please sign in to comment.