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

Function test_select_distinct_order_by

datafusion/sql/tests/sql_integration.rs:4494–4506  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4492
4493#[test]
4494fn test_select_distinct_order_by() {
4495 let sql = "SELECT distinct '1' from person order by id";
4496
4497 // It should return error.
4498 let result = logical_plan(sql);
4499 assert!(result.is_err());
4500 let err = result.err().unwrap().strip_backtrace();
4501
4502 assert_snapshot!(
4503 err,
4504 @"Error during planning: For SELECT DISTINCT, ORDER BY expressions person.id must appear in select list"
4505 );
4506}
4507
4508#[test]
4509fn test_select_qualify_basic() {

Callers

nothing calls this directly

Calls 2

strip_backtraceMethod · 0.80
logical_planFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…