alamb commented on code in PR #6052:
URL: https://github.com/apache/arrow-datafusion/pull/6052#discussion_r1174146750
##########
datafusion/core/src/execution/context.rs:
##########
@@ -1803,6 +1806,11 @@ impl SessionState {
pub fn aggregate_functions(&self) -> &HashMap<String, Arc<AggregateUDF>> {
&self.aggregate_functions
}
+
+ /// Return version
+ pub fn version(&self) -> &str {
+ &self.version
Review Comment:
I think you could just call `env!("CARGO_PKG_VERSION")` here -- is there any
reason to create a string to do so?
```suggestion
env!("CARGO_PKG_VERSION")
```
--
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]