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

Function select_order_by_index_oob

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

Source from the content-addressed store, hash-verified

2114
2115#[test]
2116fn select_order_by_index_oob() {
2117 let sql = "SELECT id FROM person ORDER BY 2";
2118 let err = logical_plan(sql)
2119 .expect_err("query should have failed")
2120 .strip_backtrace();
2121
2122 assert_snapshot!(
2123 err,
2124 @"Error during planning: Order by column out of bounds, specified: 2, max: 1"
2125 );
2126}
2127
2128#[test]
2129fn select_with_order_by() {

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…