martin-g commented on code in PR #18673:
URL: https://github.com/apache/datafusion/pull/18673#discussion_r2524872470
##########
datafusion/core/tests/dataframe/mod.rs:
##########
@@ -2872,7 +2872,7 @@ async fn test_count_wildcard_on_sort() -> Result<()> {
assert_snapshot!(
pretty_format_batches(&sql_results).unwrap(),
- @r###"
+ @r"
Review Comment:
See https://doc.rust-lang.org/rust-by-example/std/str.html
```
Sometimes there are just too many characters that need to be escaped or it's
just much more convenient to write a string out as-is. This is where raw string
literals come into play.
```
```rust
fn main() {
let raw_str = r"Escapes don't work here: \x3F \u{211D}";
println!("{}", raw_str);
// If you need quotes in a raw string, add a pair of #s
let quotes = r#"And then I said: "There is no escape!""#;
println!("{}", quotes);
// If you need "# in your string, just use more #s in the delimiter.
// You can use up to 255 #s.
let longer_delimiter = r###"A string with "# in it. And even "##!"###;
println!("{}", longer_delimiter);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]