File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ pub static QUERY_SESSION: Lazy<SessionContext> =
6565pub static QUERY_RUNTIME : Lazy < Runtime > =
6666 Lazy :: new ( || Runtime :: new ( ) . expect ( "Runtime should be constructible" ) ) ;
6767
68-
6968/// This function executes a query on the dedicated runtime, ensuring that the query is not isolated to a single thread/CPU
7069/// at a time and has access to the entire thread pool, enabling better concurrent processing, and thus quicker results.
7170pub async fn execute (
@@ -126,6 +125,14 @@ impl Query {
126125 . execution
127126 . use_row_number_estimates_to_optimize_partitioning = true ;
128127
128+ //adding this config as it improves query performance as explained here -
129+ // https://github.com/apache/datafusion/pull/13101
130+ config
131+ . options_mut ( )
132+ . execution
133+ . parquet
134+ . schema_force_view_types = true ;
135+
129136 let state = SessionStateBuilder :: new ( )
130137 . with_default_features ( )
131138 . with_config ( config)
You can’t perform that action at this time.
0 commit comments