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


##########
datafusion/common/src/scalar.rs:
##########
@@ -1433,6 +1433,14 @@ impl ScalarValue {
         })
     }
 
+    /// Try to parse `value` into a ScalarValue of type `target_type`
+    pub fn try_from_string(value: String, target_type: &DataType) -> 
Result<Self> {

Review Comment:
   ❤️ 



##########
datafusion-cli/src/main.rs:
##########
@@ -92,7 +92,7 @@ pub async fn main() -> Result<()> {
         env::set_current_dir(&p).unwrap();
     };
 
-    let mut session_config = 
SessionConfig::new().with_information_schema(true);
+    let mut session_config = 
SessionConfig::from_env().with_information_schema(true);

Review Comment:
   👍 



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