You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2024/02/02 00:33:08 UTC
[PR] [WIP] optimize DFSchema [arrow-datafusion]
comphead opened a new pull request, #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
Closes #.
## Rationale for this change
The PR is to start improving the DFSchema performance
<!--
Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
-->
## What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
-->
## Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
-->
## Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please add the `api change` label.
-->
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] WIP [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead closed pull request #9104: WIP [Performance] Optimize DFSchema search by field
URL: https://github.com/apache/arrow-datafusion/pull/9104
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#issuecomment-1926038812
There is a bigger problem behind, even simple sql
```
let sql = "select a, a + 1 b from (select 1 a union all select 2 a)";
```
calls `Schema::new_with_metadata` 58 times and `Schema::merge` 35 times
I'll try to look into the problem from other side to avoid excessive schema transform calls.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1476868875
##########
datafusion/sqllogictest/test_files/information_schema.slt:
##########
@@ -115,14 +115,14 @@ datafusion information_schema schemata VIEW
datafusion information_schema tables VIEW
datafusion information_schema views VIEW
-query TTTT rowsort
-SELECT * from information_schema.tables WHERE datafusion.information_schema.tables.table_schema='information_schema';
-----
-datafusion information_schema columns VIEW
-datafusion information_schema df_settings VIEW
-datafusion information_schema schemata VIEW
-datafusion information_schema tables VIEW
-datafusion information_schema views VIEW
+#query TTTT rowsort
+#SELECT * from information_schema.tables WHERE datafusion.information_schema.tables.table_schema='information_schema';
+#----
+#datafusion information_schema columns VIEW
+#datafusion information_schema df_settings VIEW
+#datafusion information_schema schemata VIEW
+#datafusion information_schema tables VIEW
+#datafusion information_schema views VIEW
Review Comment:
Yeah that sounds good :+1:
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "matthewmturner (via GitHub)" <gi...@apache.org>.
matthewmturner commented on PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#issuecomment-1926199837
Perhaps for this PR we could keep the focus on improving search by field performance with your initial implementation plus the points from @alamb? I am curious to see if we could still get some gains just from that and then separately look into how `merge` / `new_with_metadata` are called.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1476800053
##########
datafusion/sqllogictest/test_files/information_schema.slt:
##########
@@ -115,14 +115,14 @@ datafusion information_schema schemata VIEW
datafusion information_schema tables VIEW
datafusion information_schema views VIEW
-query TTTT rowsort
-SELECT * from information_schema.tables WHERE datafusion.information_schema.tables.table_schema='information_schema';
-----
-datafusion information_schema columns VIEW
-datafusion information_schema df_settings VIEW
-datafusion information_schema schemata VIEW
-datafusion information_schema tables VIEW
-datafusion information_schema views VIEW
+#query TTTT rowsort
+#SELECT * from information_schema.tables WHERE datafusion.information_schema.tables.table_schema='information_schema';
+#----
+#datafusion information_schema columns VIEW
+#datafusion information_schema df_settings VIEW
+#datafusion information_schema schemata VIEW
+#datafusion information_schema tables VIEW
+#datafusion information_schema views VIEW
Review Comment:
Thanks @Jefffrey
ideally I think this query shouldn't work. While debugging I found the next
```
Error: SchemaError(FieldNotFound { field: Column { relation: Some(Full { catalog: "datafusion", schema: "information_schema", table: "tables" }), name: "table_schema" }, valid_fields: [Column { relation: Some(Partial { schema: "information_schema", table: "tables" }), name: "table_catalog" }, Column { relation: Some(Partial { schema: "information_schema", table: "tables" }), name: "table_schema" }, Column { relation: Some(Partial { schema: "information_schema", table: "tables" }), name: "table_name" }, Column { relation: Some(Partial { schema: "information_schema", table: "tables" }), name: "table_type" }] }, Some(""))
```
So DF asks fully qualified column name in the list of partially qualified ones., imho this test shouldn't pass.
We typically allow less qualified to find a match for more qualified like `a -> t1.a` or `a -> schema.t1.a` but not the opposite.
I'm open to discussions.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] WIP [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#issuecomment-1931106464
> Perhaps for this PR we could keep the focus on improving search by field performance with your initial implementation plus the points from @alamb? I am curious to see if we could still get some gains just from that and then separately look into how `merge` / `new_with_metadata` are called.
Thanks @matthewmturner I just checked that we probably going into the wrong direction. So `index_of_column_by_name` its not a bottleneck, and its called just 6 times. The bigger problem is excessive calling schema transform functions, so this PR doesn't make sense anymore. It cannot bring up a benefit for now, I'm closing it and will create another issue to optimize the optimizer :) in schema part
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] WIP [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#issuecomment-1931116899
Filed https://github.com/apache/arrow-datafusion/issues/9144
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1477077964
##########
datafusion/common/src/dfschema.rs:
##########
@@ -112,6 +112,10 @@ pub struct DFSchema {
metadata: HashMap<String, String>,
/// Stores functional dependencies in the schema.
functional_dependencies: FunctionalDependencies,
+ /// Fields map
+ /// key - fully qualified field name
+ /// value - field index in schema
+ fields_map: BTreeMap<String, usize>,
Review Comment:
String is rust is totally owned (and thus copies bytes around)
You need to have something like `Arc<str>` to have Java like semantics where the copies just move refcounts around
Maybe we can adust the underlying storage to Arc<str> somehow 🤔
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1476794698
##########
datafusion/core/src/physical_planner.rs:
##########
@@ -2242,7 +2242,7 @@ mod tests {
dict_id: 0, \
dict_is_ordered: false, \
metadata: {} } }\
- ], metadata: {}, functional_dependencies: FunctionalDependencies { deps: [] } }, \
+ ], metadata: {}, functional_dependencies: FunctionalDependencies { deps: [] }, fields_map: {\"a\": 0} }, \
Review Comment:
The `Debug` is derived, the only option I see is to implement `Debug` trait manually for `DFSchema`.
I'll create a followup on this.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#issuecomment-1924888604
Thanks @alamb I'll try suggestions
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [WIP] optimize DFSchema [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1475376119
##########
datafusion/common/src/dfschema.rs:
##########
@@ -993,18 +1059,18 @@ mod tests {
use super::*;
use arrow::datatypes::DataType;
- #[test]
- fn qualifier_in_name() -> Result<()> {
- let col = Column::from_name("t1.c0");
- let schema = DFSchema::try_from_qualified_schema("t1", &test_schema_1())?;
- // lookup with unqualified name "t1.c0"
- let err = schema.index_of_column(&col).unwrap_err();
- assert_eq!(
- err.strip_backtrace(),
- "Schema error: No field named \"t1.c0\". Valid fields are t1.c0, t1.c1."
- );
- Ok(())
- }
+ // #[test]
Review Comment:
This test is currently incorrect IMHO, it expects the error but it should run ok
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1475866019
##########
datafusion/core/src/physical_planner.rs:
##########
@@ -2242,7 +2242,7 @@ mod tests {
dict_id: 0, \
dict_is_ordered: false, \
metadata: {} } }\
- ], metadata: {}, functional_dependencies: FunctionalDependencies { deps: [] } }, \
+ ], metadata: {}, functional_dependencies: FunctionalDependencies { deps: [] }, fields_map: {\"a\": 0} }, \
Review Comment:
I suppose there's no easy way to omit this new field from debug :slightly_frowning_face: (other than newtyping it?)
Not a big deal I guess
##########
datafusion/common/src/dfschema.rs:
##########
@@ -865,11 +880,13 @@ impl DFField {
/// Returns a string to the `DFField`'s qualified name
pub fn qualified_name(&self) -> String {
- if let Some(qualifier) = &self.qualifier {
- format!("{}.{}", qualifier, self.field.name())
- } else {
- self.field.name().to_owned()
- }
+ Self::make_qualified_name(self.qualifier.as_ref(), self.name())
+ }
+
+ pub fn make_qualified_name(qualifier: Option<&TableReference>, name: &str) -> String {
Review Comment:
Probably doesn't need to be pub?
##########
datafusion/sqllogictest/test_files/information_schema.slt:
##########
@@ -115,14 +115,14 @@ datafusion information_schema schemata VIEW
datafusion information_schema tables VIEW
datafusion information_schema views VIEW
-query TTTT rowsort
-SELECT * from information_schema.tables WHERE datafusion.information_schema.tables.table_schema='information_schema';
-----
-datafusion information_schema columns VIEW
-datafusion information_schema df_settings VIEW
-datafusion information_schema schemata VIEW
-datafusion information_schema tables VIEW
-datafusion information_schema views VIEW
+#query TTTT rowsort
+#SELECT * from information_schema.tables WHERE datafusion.information_schema.tables.table_schema='information_schema';
+#----
+#datafusion information_schema columns VIEW
+#datafusion information_schema df_settings VIEW
+#datafusion information_schema schemata VIEW
+#datafusion information_schema tables VIEW
+#datafusion information_schema views VIEW
Review Comment:
Was there a reason this is being commented?
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#issuecomment-1926043435
Adding 1 more input row
```
let sql = "select a, a + 1 b from (select 1 a union all select 2 a union all select 3 a)";
```
| rows | new_with_metadata | merge |
|------|---------------------|-------|
| 2 | 58 | 35 |
| 3 | 131 | 83 |
| 4 | 165 | 109 |
Looks like a problem
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1476915870
##########
datafusion/common/src/dfschema.rs:
##########
@@ -112,6 +112,10 @@ pub struct DFSchema {
metadata: HashMap<String, String>,
/// Stores functional dependencies in the schema.
functional_dependencies: FunctionalDependencies,
+ /// Fields map
+ /// key - fully qualified field name
+ /// value - field index in schema
+ fields_map: BTreeMap<String, usize>,
Review Comment:
Name is also a String? should this also cause a copy?
Btw why it causes copy in the first place?
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1476858799
##########
datafusion/sqllogictest/test_files/information_schema.slt:
##########
@@ -115,14 +115,14 @@ datafusion information_schema schemata VIEW
datafusion information_schema tables VIEW
datafusion information_schema views VIEW
-query TTTT rowsort
-SELECT * from information_schema.tables WHERE datafusion.information_schema.tables.table_schema='information_schema';
-----
-datafusion information_schema columns VIEW
-datafusion information_schema df_settings VIEW
-datafusion information_schema schemata VIEW
-datafusion information_schema tables VIEW
-datafusion information_schema views VIEW
+#query TTTT rowsort
+#SELECT * from information_schema.tables WHERE datafusion.information_schema.tables.table_schema='information_schema';
+#----
+#datafusion information_schema columns VIEW
+#datafusion information_schema df_settings VIEW
+#datafusion information_schema schemata VIEW
+#datafusion information_schema tables VIEW
+#datafusion information_schema views VIEW
Review Comment:
Oh you mean if the catalog is not specified, by default we should consider `catalog.default_catalog` value?
Would you mind if I addresss it in followup PR, I wanna keep this PR size to be reviewable
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1476751851
##########
datafusion/common/src/dfschema.rs:
##########
@@ -237,6 +301,7 @@ impl DFSchema {
}
}
self.fields.extend(fields_to_add);
+ self.fields_map = Self::get_fields_map(&self.fields);
Review Comment:
since merge is one of the hot paths, could we update self.fields_map rather than recomputing it 🤔
##########
datafusion/common/src/dfschema.rs:
##########
@@ -112,6 +112,10 @@ pub struct DFSchema {
metadata: HashMap<String, String>,
/// Stores functional dependencies in the schema.
functional_dependencies: FunctionalDependencies,
+ /// Fields map
+ /// key - fully qualified field name
+ /// value - field index in schema
+ fields_map: BTreeMap<String, usize>,
Review Comment:
If you use a `String` here it still requires a lot of copying
What if you made something more specialized like:
```rust
fields_map: BTreeMap<(Option<OwnedTableReference>, Name), usize>
```
I think that would then let you look up elements in the map without having to construct an owned name
##########
datafusion/common/src/dfschema.rs:
##########
@@ -865,11 +880,13 @@ impl DFField {
/// Returns a string to the `DFField`'s qualified name
pub fn qualified_name(&self) -> String {
- if let Some(qualifier) = &self.qualifier {
- format!("{}.{}", qualifier, self.field.name())
- } else {
- self.field.name().to_owned()
- }
+ Self::make_qualified_name(self.qualifier.as_ref(), self.name())
+ }
+
+ pub fn make_qualified_name(qualifier: Option<&TableReference>, name: &str) -> String {
Review Comment:
I agree making it non pub would be good.
Also, the fact it returns an owned `String` seems like it still adds a lot of copying. I left a suggestion above on how to maybe improve this
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1476848589
##########
datafusion/sqllogictest/test_files/information_schema.slt:
##########
@@ -115,14 +115,14 @@ datafusion information_schema schemata VIEW
datafusion information_schema tables VIEW
datafusion information_schema views VIEW
-query TTTT rowsort
-SELECT * from information_schema.tables WHERE datafusion.information_schema.tables.table_schema='information_schema';
-----
-datafusion information_schema columns VIEW
-datafusion information_schema df_settings VIEW
-datafusion information_schema schemata VIEW
-datafusion information_schema tables VIEW
-datafusion information_schema views VIEW
+#query TTTT rowsort
+#SELECT * from information_schema.tables WHERE datafusion.information_schema.tables.table_schema='information_schema';
+#----
+#datafusion information_schema columns VIEW
+#datafusion information_schema df_settings VIEW
+#datafusion information_schema schemata VIEW
+#datafusion information_schema tables VIEW
+#datafusion information_schema views VIEW
Review Comment:
I think it should still work.
If the default catalog is `datafusion`, then all tables that don't have a catalog specified should implicitly fall under `datafusion` catalog. So querying `information_schema.tables` is the same as querying `datafusion.information_schema.tables` which means we should be able to use `datafusion.information_schema.tables.table_schema` in the where clause and resolve it.
I think I've worked on or seen an issue related to this before, and I agree it might be a bit confusing.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [WIP] optimize DFSchema [arrow-datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on code in PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#discussion_r1475376681
##########
datafusion/common/src/dfschema.rs:
##########
@@ -1146,35 +1212,6 @@ mod tests {
Ok(())
}
- #[allow(deprecated)]
Review Comment:
Dropped as we have other tests duplicating this behavior, furthermore these tests referred to deprecated and already dropped methods
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Performance] Optimize DFSchema search by field [arrow-datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #9104:
URL: https://github.com/apache/arrow-datafusion/pull/9104#issuecomment-1925351142
> Thanks @alamb I'll try suggestions
👍
> EDIT: How do you compare results from `cargo bench --bench sql_planner` for different commits? You run the bench for both branches and compare benches like `logical_select_one_from_700`
What I did was
```shell
git checkout `git merge-base comphead/dev apache/main` # checkout place where your branch diverged from main
cargo bench --bench sql_planner
git checkout comphead/dev
cargo bench --bench sql_planner
```
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org