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

Function select_order_by_index_of_0

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

Source from the content-addressed store, hash-verified

2101
2102#[test]
2103fn select_order_by_index_of_0() {
2104 let sql = "SELECT id FROM person ORDER BY 0";
2105 let err = logical_plan(sql)
2106 .expect_err("query should have failed")
2107 .strip_backtrace();
2108
2109 assert_snapshot!(
2110 err,
2111 @"Error during planning: Order by index starts at 1 for column indexes"
2112 );
2113}
2114
2115#[test]
2116fn select_order_by_index_oob() {

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…