We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a90641b commit 8f67249Copy full SHA for 8f67249
datafusion-cli/src/helper.rs
@@ -18,6 +18,7 @@
18
//! Helper that helps with interactive editing, including multi-line parsing and validation,
19
//! and auto-completion for file name during creating external table.
20
21
+use datafusion::common::sql_err;
22
use datafusion::error::DataFusionError;
23
use datafusion::sql::parser::{DFParser, Statement};
24
use datafusion::sql::sqlparser::dialect::dialect_from_str;
@@ -162,9 +163,10 @@ pub fn unescape_input(input: &str) -> datafusion::error::Result<String> {
162
163
't' => '\t',
164
'\\' => '\\',
165
_ => {
- return sql_err!(ParserError::TokenizerError(
166
- format!("unsupported escape char: '\\{}'", next_char),
167
- ))
+ return sql_err!(ParserError::TokenizerError(format!(
+ "unsupported escape char: '\\{}'",
168
+ next_char
169
+ ),))
170
}
171
});
172
0 commit comments