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

Function select_ambiguous_column

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

Source from the content-addressed store, hash-verified

3737
3738#[tokio::test]
3739async fn select_ambiguous_column() -> Result<()> {
3740 let err = create_test_table("t1")
3741 .await?
3742 .join(
3743 create_test_table("t2").await?,
3744 JoinType::Inner,
3745 &["a"],
3746 &["a"],
3747 None,
3748 )?
3749 .select(vec![col("b")])
3750 .unwrap_err();
3751
3752 assert_snapshot!(err.strip_backtrace(), @"Schema error: Ambiguous reference to unqualified field b");
3753 Ok(())
3754}
3755
3756#[tokio::test]
3757async fn filter_with_alias_overwrite() -> Result<()> {

Callers

nothing calls this directly

Calls 4

unwrap_errMethod · 0.80
create_test_tableFunction · 0.70
selectMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…