MCPcopy Create free account
hub / github.com/apache/datafusion / group_by_ambiguous_column

Function group_by_ambiguous_column

datafusion/core/tests/dataframe/mod.rs:3703–3718  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3701
3702#[tokio::test]
3703async fn group_by_ambiguous_column() -> Result<()> {
3704 let err = create_test_table("t1")
3705 .await?
3706 .join(
3707 create_test_table("t2").await?,
3708 JoinType::Inner,
3709 &["a"],
3710 &["a"],
3711 None,
3712 )?
3713 .aggregate(vec![col("b")], vec![max(col("a"))])
3714 .unwrap_err();
3715
3716 assert_snapshot!(err.strip_backtrace(), @"Schema error: Ambiguous reference to unqualified field b");
3717 Ok(())
3718}
3719
3720#[tokio::test]
3721async fn filter_on_ambiguous_column() -> Result<()> {

Callers

nothing calls this directly

Calls 4

unwrap_errMethod · 0.80
create_test_tableFunction · 0.70
aggregateMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…