fix: don't skip failed rules during logical planning (#7641)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Christopher M. Wolff 2023-04-24 11:15:08 -07:00 committed by GitHub
parent 2d592a0295
commit fe5fa3b3e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,14 @@ pub fn iox_session_config() -> SessionConfig {
options.execution.parquet.reorder_filters = true;
options.optimizer.repartition_sorts = true;
// DataFusion skips failed optimizer rules by default. Relevant issues:
// - https://github.com/apache/arrow-datafusion/issues/4615
// - https://github.com/apache/arrow-datafusion/issues/4685
//
// However IOx should not skip them, since that will result in more helpful error messages
// when they fail, e.g., 'HandleGapFill`.
options.optimizer.skip_failed_rules = false;
SessionConfig::from(options)
.with_batch_size(BATCH_SIZE)
.with_create_default_catalog_and_schema(true)