alamb commented on code in PR #9831:
URL: https://github.com/apache/arrow-datafusion/pull/9831#discussion_r1543800474


##########
datafusion-cli/src/helper.rs:
##########
@@ -197,6 +204,19 @@ pub fn unescape_input(input: &str) -> 
datafusion::error::Result<String> {
     Ok(result)
 }
 
+/// Splits a string which consists of multiple queries.
+pub(crate) fn split_from_semicolon(sql: String) -> Vec<String> {

Review Comment:
   You can probably avoid a copy here if you passed in a reference
   
   ```suggestion
   pub(crate) fn split_from_semicolon(sql: &str) -> Vec<&str> {
   ```



-- 
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]

Reply via email to