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

Function sort_on_ambiguous_column

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

Source from the content-addressed store, hash-verified

3683
3684#[tokio::test]
3685async fn sort_on_ambiguous_column() -> Result<()> {
3686 let err = create_test_table("t1")
3687 .await?
3688 .join(
3689 create_test_table("t2").await?,
3690 JoinType::Inner,
3691 &["a"],
3692 &["a"],
3693 None,
3694 )?
3695 .sort(vec![col("b").sort(true, true)])
3696 .unwrap_err();
3697
3698 assert_snapshot!(err.strip_backtrace(), @"Schema error: Ambiguous reference to unqualified field b");
3699 Ok(())
3700}
3701
3702#[tokio::test]
3703async fn group_by_ambiguous_column() -> Result<()> {

Callers

nothing calls this directly

Calls 4

unwrap_errMethod · 0.80
create_test_tableFunction · 0.70
sortMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…