File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
134134 format ! ( "${}" , pos + 1 ) ,
135135 param_data_types. get ( pos) . cloned ( ) ,
136136 ) ) ) ,
137- None => plan_err ! ( "Invalid placeholder: {param}" ) ,
137+ None => plan_err ! ( "Unknown placeholder: {param}" ) ,
138138 }
139139 } ;
140140 }
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ fn test_prepare_statement_to_plan_panic_param_format() {
105105 assert_snapshot ! (
106106 logical_plan( sql) . unwrap_err( ) . strip_backtrace( ) ,
107107 @r###"
108- Error during planning: Invalid placeholder: $foo
108+ Error during planning: Unknown placeholder: $foo
109109 "###
110110 ) ;
111111}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ statement error DataFusion error: SQL error: ParserError
3434PREPARE AS SELECT id, age FROM person WHERE age = $foo;
3535
3636# param following a non-number, $foo, not supported
37- statement error Invalid placeholder: \$foo
37+ statement error Unknown placeholder: \$foo
3838PREPARE my_plan(INT) AS SELECT id, age FROM person WHERE age = $foo;
3939
4040# not specify table hence cannot specify columns
You can’t perform that action at this time.
0 commit comments