You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2020/08/23 21:39:43 UTC

[GitHub] [arrow] jorgecarleitao commented on a change in pull request #8033: ARROW-9837: [Rust][DataFusion] Add provider for variable

jorgecarleitao commented on a change in pull request #8033:
URL: https://github.com/apache/arrow/pull/8033#discussion_r475270454



##########
File path: rust/datafusion/src/variable/system.rs
##########
@@ -0,0 +1,18 @@
+use crate::logicalplan::ScalarValue;
+use crate::error::Result;
+use crate::variable::VariableProvider;
+
+pub struct SystemVariable {}
+
+impl SystemVariable {
+    pub fn new() -> Self {
+        Self {}
+    }
+}
+
+impl VariableProvider for SystemVariable {
+    fn get_value(&self, variable_names: Vec<String>) -> Result<ScalarValue> {
+        let s = format!("{}-{}", "test".to_string(), variable_names.concat());

Review comment:
       why `test`?




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org