instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apache__datafusion-sqlparser-rs__525 | apache/datafusion-sqlparser-rs | 525 | defect | c884fbc3883ea50d53f2ebbc1b54b3978fb16709 | e2508468bf6889ad9eeb66decf349fd4cbde7c5e | Distinguish between `INT` and `INTEGER` types | @alamb (you said that I can ping you :d)
Closes #398
| diff --git a/src/ast/data_type.rs b/src/ast/data_type.rs
index dc434a8f0b..b31b7ba734 100644
--- a/src/ast/data_type.rs
+++ b/src/ast/data_type.rs
@@ -55,8 +55,12 @@ pub enum DataType {
UnsignedSmallInt(Option<u64>),
/// Integer with optional display width e.g. INT or INT(11)
Int(Option<u64>),
+ /// I... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comment on the new UnsignedInteger variant still reads 'INT UNSIGNED or INT(11) UNSIGNED' and should be corrected to read 'INTGER UNSIGNED or INTEGER(11) UNSIGNED'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion__16985 | apache/datafusion | 16,985 | defect | 9b27952303d38f9991475e9feb1d81ccac9d4f65 | 5838f4577364a999e33a22e829edcbd4eca3c23b | fix: UnnestExec preserves relevant equivalence properties of input | ## Which issue does this PR close?
- Closes https://github.com/apache/datafusion/issues/15231.
## What changes are included in this PR?
- In `UnnestExec`'s `compute_properties` we now construct its`EquivalenceProperties` using what we can from the input plan, so that we preserve sort ordering of unrelated columns ... | diff --git a/datafusion/physical-expr/src/equivalence/ordering.rs b/datafusion/physical-expr/src/equivalence/ordering.rs
index 875c2a76e5eb2..9857d9187340a 100644
--- a/datafusion/physical-expr/src/equivalence/ordering.rs
+++ b/datafusion/physical-expr/src/equivalence/ordering.rs
@@ -74,6 +74,11 @@ impl OrderingEquival... | 8 | 6 | 4 | [{"id": "G0", "claim": "UnnestExec's new EquivalenceProperties copies the input's equivalence properties wholesale, leaving stale orderings and equivalence groups for the columns being unnested; instead the input properties should be cloned and modified, removing the orderings on the unnested columns as filter does.", ... | null |
apache__datafusion__17620 | apache/datafusion | 17,620 | defect | 986cfcde0ee2bb2cd2e8cc684a497896b278a2d9 | a2d853b1ffce84713b33609b4141e1e1caa65127 | Add support for calling async UDF as aggregation expression |
## 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.
... | diff --git a/datafusion/core/src/physical_planner.rs b/datafusion/core/src/physical_planner.rs
index 15d325288b071..aead7495830b2 100644
--- a/datafusion/core/src/physical_planner.rs
+++ b/datafusion/core/src/physical_planner.rs
@@ -741,9 +741,54 @@ impl DefaultPhysicalPlanner {
})
... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add tests checking that the generated logical and physical plans are as expected for each of the SQL statements in the async UDF end-to-end test file.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code has potential issues d... | null |
apache__datafusion__18091 | apache/datafusion | 18,091 | defect | 264030cca76d0bdb4d8809f252b422e72624a345 | a9a6197f06c8876b2a60867e20fe8fd9e67a0777 | refactor: remove unused `type_coercion/aggregate.rs` functions | ## 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.
-->
... | diff --git a/datafusion/expr-common/src/type_coercion/aggregates.rs b/datafusion/expr-common/src/type_coercion/aggregates.rs
index e77a072a84f38..9443ebe974931 100644
--- a/datafusion/expr-common/src/type_coercion/aggregates.rs
+++ b/datafusion/expr-common/src/type_coercion/aggregates.rs
@@ -16,31 +16,11 @@
// under t... | 6 | 1 | 0 | [{"id": "G0", "claim": "Usage of the INTEGERS and NUMERICS type-coercion lists should be removed in favour of the Signature API, which the author defers to a follow-up issue.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The coerce_types logi... | null |
apache__datafusion__18123 | apache/datafusion | 18,123 | defect | 8e1d13a9c6e989b8a6216c6752a34fb3e0494e0f | 97031e1467b91bab260237aa952a4fb081a68d9d | refactor: remove core crate from datafusion-proto | ## Which issue does this PR close?
- Closes #17713.
## Rationale for this change
Now that we have all the required supporting code moved out of the `core` crate, we can remove this as a dependency to reduce build times for downstream projects.
## What changes are included in this PR?
Remove dependency.
... | diff --git a/Cargo.lock b/Cargo.lock
index d69ece6d3fb05..e3f4d8cc7c69b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2533,11 +2533,24 @@ dependencies = [
"arrow",
"chrono",
"datafusion",
+ "datafusion-catalog",
+ "datafusion-catalog-listing",
"datafusion-common",
+ "datafusion-datasource",
+ "datafusion-datasou... | 1 | 1 | 0 | [{"id": "G0", "claim": "A note should be kept in datafusion/proto/Cargo.toml explaining the direct datafusion dependency was removed, so it does not come back in the future.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion__18172 | apache/datafusion | 18,172 | defect | 35b2e359f6703dedc6bf8ced3f0699d8a885d4df | 2d8fb9cdafe00ad21f02910ba4198735968d6e94 | feat: allow pushdown of dynamic filters having partition cols | ## Which issue does this PR close?
- Closes #18171
## Rationale for this change
Included in the issue
## Are these changes tested?
While I have tested this on local with a local TPCDS-like dataset, I would appreciate if someone provides me a good way to add tests for the same 😅
| diff --git a/datafusion/datasource-parquet/src/source.rs b/datafusion/datasource-parquet/src/source.rs
index dd10363079f91..7cb0434282624 100644
--- a/datafusion/datasource-parquet/src/source.rs
+++ b/datafusion/datasource-parquet/src/source.rs
@@ -43,6 +43,7 @@ use datafusion_datasource::file_scan_config::FileScanConf... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pushdown check in ParquetSource should use the table schema including partition columns via a single can_expr_be_pushed_down_with_schemas(&filter, &table_schema) call instead of special-casing dynamic expressions against the file schema, since non-dynamic filters can also reference partition... | null |
apache__datafusion__18191 | apache/datafusion | 18,191 | defect | fd3ccf8e1816defd79053a51b0f3bfc1562cdade | 10d78ac50c1a4995d5061d1874f50cd6de3ac5a6 | Refactor `nvl2` Function to Support Lazy Evaluation and Simplification via CASE Expression |
## Which issue does this PR close?
* Closes #17983
## Rationale for this change
The current implementation of the `nvl2` function in DataFusion eagerly evaluates all its arguments, which can lead to unnecessary computation and incorrect behavior when handling expressions that should only be conditionally eva... | diff --git a/datafusion/core/tests/dataframe/dataframe_functions.rs b/datafusion/core/tests/dataframe/dataframe_functions.rs
index b664fccdfa800..d95eb38c19e1a 100644
--- a/datafusion/core/tests/dataframe/dataframe_functions.rs
+++ b/datafusion/core/tests/dataframe/dataframe_functions.rs
@@ -274,6 +274,33 @@ async fn t... | 2 | 2 | 0 | [{"id": "G0", "claim": "In #17357 the author chose to make invoke_with_args return an internal error instead of retaining the implementation, so this PR should consider doing the same here.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The simplify impl... | null |
apache__datafusion__18297 | apache/datafusion | 18,297 | defect | f870dcd87852d77c16e49c8b7c38337becf787ef | 1066b82fdcb24e9536fb9b0560461748c67b6270 | feat: Introduce `PruningMetrics` and use it in parquet file pruning metric | ## 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.
-->
... | diff --git a/datafusion/core/tests/parquet/mod.rs b/datafusion/core/tests/parquet/mod.rs
index c44d14abd381a..29eaef7cef4c4 100644
--- a/datafusion/core/tests/parquet/mod.rs
+++ b/datafusion/core/tests/parquet/mod.rs
@@ -37,6 +37,7 @@ use datafusion::{
prelude::{ParquetReadOptions, SessionConfig, SessionContext},
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The match arm aggregating a `PruningMetrics` value should return 0 rather than panic with `unreachable!()`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__datafusion__18321 | apache/datafusion | 18,321 | defect | 195415d4036bb16f2111a0b147162728f48458c5 | 6302079940a7bf11e34c3988720698601c837434 | feat: Better parquet row-group/page pruning metrics display |
## 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.
-... | diff --git a/datafusion-examples/examples/json_shredding.rs b/datafusion-examples/examples/json_shredding.rs
index a2e83bc9510ab..5ef8b59b64200 100644
--- a/datafusion-examples/examples/json_shredding.rs
+++ b/datafusion-examples/examples/json_shredding.rs
@@ -142,7 +142,7 @@ async fn main() -> Result<()> {
.a... | 2 | 1 | 0 | [{"id": "G0", "claim": "The two usize values returned by the new `pruning_metric` test helper should be documented as the total rows pruned and the total rows matched.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Perhaps when the bloom filter is... | null |
apache__datafusion__18404 | apache/datafusion | 18,404 | defect | e65dafe7330f0324b28d9037f4e5a73cf12e99ce | f93a65a1366bd398d70f4b523054e26f22ba3233 | Allow filter pushdown through AggregateExec | ## Which issue does this PR close?
- Closes #18399
## Rationale for this change
Right now filters cannot pass through `AggregateExec` nodes, preventing filter pushdown optimization in queries with GROUP BY/DISTINCT operations.
## What changes are included in this PR?
- Implemented `gather_filters_for_pus... | diff --git a/datafusion/core/tests/physical_optimizer/filter_pushdown/mod.rs b/datafusion/core/tests/physical_optimizer/filter_pushdown/mod.rs
index b91c1732260cf..513bf530bdccf 100644
--- a/datafusion/core/tests/physical_optimizer/filter_pushdown/mod.rs
+++ b/datafusion/core/tests/physical_optimizer/filter_pushdown/mo... | 8 | 6 | 4 | [{"id": "G0", "claim": "Add tests verifying that with GROUPING SETS ((a, b), (b)) a filter on a (missing from the second grouping set) is not pushed down, while a filter on b (present in all grouping sets) is pushed down.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
apache__datafusion__18577 | apache/datafusion | 18,577 | defect | 28755b1d7eb5222a8f5fb5417134dd6865ac1311 | 981940183cdc2f5ae9a165f75d646a9a70ef85ce | feat(parquet): Implement `scan_efficiency_ratio` metric for parquet reading | ## 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.
-->
... | diff --git a/datafusion/core/tests/sql/explain_analyze.rs b/datafusion/core/tests/sql/explain_analyze.rs
index 26b71b5496f29..2a83b17e275d1 100644
--- a/datafusion/core/tests/sql/explain_analyze.rs
+++ b/datafusion/core/tests/sql/explain_analyze.rs
@@ -872,6 +872,7 @@ async fn parquet_explain_analyze() {
&form... | 2 | 1 | 1 | [{"id": "G0", "claim": "Adding the `partitioned_file` field to the public `ParquetFileReader` struct may technically be a breaking change, and the author floats adding a `file_size()` getter to `ParquetObjectReader` in arrow-rs as an alternative.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": ... | null |
apache__datafusion__18607 | apache/datafusion | 18,607 | defect | 1586cabebb3557704f4b0a59f3122fbdd9953c44 | 193c6fc6e1b7341c90bdf03a803b3989a4811016 | Enforce explicit opt-in for `WITHIN GROUP` syntax in aggregate UDAFs | ## Which issue does this PR close?
Closes #18109.
## Rationale for this change
Previously, the SQL planner accepted `WITHIN GROUP` clauses for all aggregate UDAFs, even those that did not explicitly support ordered-set semantics. This behavior was too permissive and inconsistent with PostgreSQL. For example, q... | diff --git a/datafusion/sql/src/expr/function.rs b/datafusion/sql/src/expr/function.rs
index 50e479af36204..471b4badfd173 100644
--- a/datafusion/sql/src/expr/function.rs
+++ b/datafusion/sql/src/expr/function.rs
@@ -26,6 +26,7 @@ use datafusion_expr::expr::{
NullTreatment, ScalarFunction, Unnest, WildcardOptions,... | 6 | 6 | 2 | [{"id": "G0", "claim": "The comment on the WithinGroupExtraction type alias is overly verbose, and placing the type alias far from its only usage feels odd.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The long explanatory comments around the ... | null |
apache__datafusion__18623 | apache/datafusion | 18,623 | defect | 6d9ab4539966d5bd95ac6cd32a2e4df18f6f848a | 3c9777ed0e222100095a082ed9ab2922a008b46c | bugfix: select_columns should validate column names | ## Which issue does this PR close?
- Closes #18622
## Rationale for this change
If you call `select_columns` or `drop_columns` and you pass an invalid column name, you should get an error. In 50.3 the unit tests I have updated will pass but in the current branch for 51 release candidate they fail.
## What c... | diff --git a/datafusion/core/src/dataframe/mod.rs b/datafusion/core/src/dataframe/mod.rs
index 98804e424b407..a1c4ac28156a0 100644
--- a/datafusion/core/src/dataframe/mod.rs
+++ b/datafusion/core/src/dataframe/mod.rs
@@ -52,8 +52,8 @@ use arrow::datatypes::{DataType, Field, Schema, SchemaRef};
use datafusion_common::c... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new test should verify the actual error content (the error message, or that it is a FieldNotFound for 'canada') instead of only matching any SchemaError.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whethe... | null |
apache__datafusion__18688 | apache/datafusion | 18,688 | defect | 6685bbe5028609f676b27e435dbe095124fac99a | b17e5bb7dbd4969a60907b1f7937697e26519119 | feat: allow custom caching via logical node | ## 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.
-->
... | diff --git a/datafusion/core/src/dataframe/mod.rs b/datafusion/core/src/dataframe/mod.rs
index 2b94bcf63b52c..2ea9286045909 100644
--- a/datafusion/core/src/dataframe/mod.rs
+++ b/datafusion/core/src/dataframe/mod.rs
@@ -56,6 +56,7 @@ use datafusion_common::{
ScalarValue, SchemaError, TableReference, UnnestOptions... | 10 | 8 | 1 | [{"id": "G0", "claim": "The DataFrame::cache doc comment should be updated to mention the custom cache path, e.g. that it caches using the configured cache producer, falling back to an in-memory table when none is set.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
apache__datafusion__18691 | apache/datafusion | 18,691 | defect | e42a0b626aa3b6b2e5e8b297c432e0c982706e8e | b38b4b9d8410c3379f27f2134b01b4b747ada8c8 | Add Explicit Error Handling for Unsupported SQL `FETCH` Clause in Planner and CLI | ## Which issue does this PR close?
* Closes #17716.
## Rationale for this change
The `FETCH NEXT` clause was being parsed without triggering an error, resulting in the CLI executing queries containing unsupported SQL syntax. This could mislead users into believing the feature is supported and undermine SQL cor... | diff --git a/datafusion-cli/tests/cli_integration.rs b/datafusion-cli/tests/cli_integration.rs
index c1395aa4f562c..7177d097e4c4b 100644
--- a/datafusion-cli/tests/cli_integration.rs
+++ b/datafusion-cli/tests/cli_integration.rs
@@ -157,6 +157,10 @@ fn init() {
"change_format_version",
["--file", "tests/sql/t... | 3 | 3 | 0 | [{"id": "G0", "claim": "The documentation should omit the note that DataFusion does not support the SQL `FETCH` clause, stating only what is supported.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The FETCH-not-supported check should be tested i... | null |
apache__datafusion__18790 | apache/datafusion | 18,790 | defect | 4198c5a74fa8ea8dbe2623145d6e38d5cbfeb28c | 6b35912dca1d0fa05c6e7488031762f15d53ed5d | chore: Finish refactor with `assert_or_internal_err!()` | ## 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.
-->
... | diff --git a/datafusion/catalog-listing/src/helpers.rs b/datafusion/catalog-listing/src/helpers.rs
index 089457648d21f..22e7002f906af 100644
--- a/datafusion/catalog-listing/src/helpers.rs
+++ b/datafusion/catalog-listing/src/helpers.rs
@@ -21,8 +21,9 @@ use std::mem;
use std::sync::Arc;
use datafusion_catalog::Ses... | 5 | 3 | 0 | [{"id": "G0", "claim": "Decimal validation should use map_err to return the error directly, instead of validating, checking is_ok, and unwrapping the error into assert_or_internal_err!.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Union de... | null |
apache__datafusion__18798 | apache/datafusion | 18,798 | defect | 82181ac48c1cdc5fe1baadc7d043837acbaf35f1 | cfec2a87b86186d94733bf7ebd89f6357489a69b | Implement Substrait Support for `GROUPING SET CUBE` |
## Which issue does this PR close?
* Closes #16294.
## Rationale for this change
This change adds complete Substrait round‑trip support for `GROUPING SET CUBE`, allowing logical plans containing cubes to successfully convert to and from Substrait. Previously, cube handling in the Substrait producer returne... | diff --git a/datafusion/expr/src/utils.rs b/datafusion/expr/src/utils.rs
index 8e8483bc2a35f..99aa35b9d62a7 100644
--- a/datafusion/expr/src/utils.rs
+++ b/datafusion/expr/src/utils.rs
@@ -34,8 +34,8 @@ use datafusion_common::tree_node::{
};
use datafusion_common::utils::get_at_indices;
use datafusion_common::{
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use the existing `powerset()` function with cloning handled at the call site instead of adding a `powerset_cloned()` variant, to avoid maintaining three function signatures (`powerset`, `powerset_cloned` and `powerset_indices`).", "category": "maintainability", "verdict": "supported", "priority"... | null |
apache__datafusion__18814 | apache/datafusion | 18,814 | defect | 82181ac48c1cdc5fe1baadc7d043837acbaf35f1 | d8cf07b001c16658e5a4c65e0a0292268674e326 | Fix Schema Duplication Errors in Self‑Referential INTERSECT/EXCEPT by Requalifying Input Sides |
## Which issue does this PR close?
* Closes #16295.
## Rationale for this change
Self-referential INTERSECT and EXCEPT queries (where both sides originate from the same table) failed during Substrait round‑trip consumption with the error:
> "Schema contains duplicate qualified field name"
This happened... | diff --git a/datafusion/expr/src/logical_plan/builder.rs b/datafusion/expr/src/logical_plan/builder.rs
index b9afd894d77d3..8f7d58241d9dd 100644
--- a/datafusion/expr/src/logical_plan/builder.rs
+++ b/datafusion/expr/src/logical_plan/builder.rs
@@ -1350,6 +1350,15 @@ impl LogicalPlanBuilder {
);
}... | 2 | 1 | 0 | [{"id": "G0", "claim": "The expected plans for the self-referential INTERSECT and EXCEPT tests look identical, so the reviewer asks whether there is any difference between them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The conflict detecti... | null |
apache__datafusion__18831 | apache/datafusion | 18,831 | defect | b1af8fe9ced2725fba30b127619380baea7b3067 | 21019a835bc1eb9ea5610e6b725aadade1675fc3 | Fix error planning aggregates with duplicated names in select list | ## Which issue does this PR close?
- Closes #18683
```
./target/debug/datafusion-cli
DataFusion CLI v51.0.0
> create table t(a int, b int) as values (1,3), (3,4), (4,5);
0 row(s) fetched.
Elapsed 0.021 seconds.
> select a from t group by a order by min(b);
+---+
| a |
+---+
| 1 |
| 3 |
| 4 |
+--... | diff --git a/datafusion/sql/src/select.rs b/datafusion/sql/src/select.rs
index 42013a76a8657..2783be3e90769 100644
--- a/datafusion/sql/src/select.rs
+++ b/datafusion/sql/src/select.rs
@@ -41,7 +41,7 @@ use datafusion_expr::utils::{
};
use datafusion_expr::{
Aggregate, Expr, Filter, GroupingSet, LogicalPlan, Log... | 5 | 3 | 1 | [{"id": "G0", "claim": "Rather than deleting the error test in order.slt, keep it in as a regression test to keep the behaviour covered.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a check_columns_satisfy_exprs call for the post-aggregation ORDER... | null |
apache__datafusion__18842 | apache/datafusion | 18,842 | defect | 794660482bb21a9f974c6345d4b9a631009a316b | dacf601a4a30f432e1b1654221b68526078e2b21 | Support Substrait Round-Trip of `EmptyRelation` Including `produce_one_row` Semantics |
## Which issue does this PR close?
* Closes #16271.
## Rationale for this change
This change resolves a long‑standing gap in DataFusion’s Substrait round‑trip implementation where `EmptyRelation` with `produce_one_row=true` could not be encoded or decoded. This limitation caused ~1800 sqllogictest cases to f... | diff --git a/datafusion/substrait/src/logical_plan/consumer/rel/read_rel.rs b/datafusion/substrait/src/logical_plan/consumer/rel/read_rel.rs
index 48e93c04bb034..9d22b5e060d33 100644
--- a/datafusion/substrait/src/logical_plan/consumer/rel/read_rel.rs
+++ b/datafusion/substrait/src/logical_plan/consumer/rel/read_rel.rs... | 2 | 1 | 0 | [{"id": "G0", "claim": "The comment explaining the produce_one_row pattern could reference the well-known \"dual table\" concept for readers with a DB background.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment saying the deprecated 'va... | null |
apache__datafusion__18857 | apache/datafusion | 18,857 | defect | f1ecaccd183367086ecb5b7736d93b3aba109e01 | 625b5cf1b7d585034efc876bdd3aa152cf51301a | feat(small): Support `<slt:ignore>` marker in `sqllogictest` for non-deterministic expected parts | ## 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.
-->
... | diff --git a/datafusion/sqllogictest/README.md b/datafusion/sqllogictest/README.md
index a389ae1ef60e2..8c1708742c486 100644
--- a/datafusion/sqllogictest/README.md
+++ b/datafusion/sqllogictest/README.md
@@ -142,6 +142,17 @@ select substr('Andrew Lamb', 1, 6), '|'
Andrew |
```
+## Cookbook: Ignoring volatile outpu... | 3 | 2 | 1 | [{"id": "G0", "claim": "The early `return false` in the fragment-based matcher should log a warning with the reason instead of returning silently, as the existing warn! block below does.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new REA... | null |
apache__datafusion__18866 | apache/datafusion | 18,866 | defect | 794660482bb21a9f974c6345d4b9a631009a316b | d875ce1477149c3f86975ec48aaf7fdb7b000f1a | Support Non-Literal Expressions in Substrait VirtualTable Values and Improve Round-Trip Robustness |
## Which issue does this PR close?
* Closes #16276.
## Rationale for this change
This PR addresses failures in Substrait round‑trip mode where Virtual Tables were limited to accepting only literals or aliased literals. Several SQLLogicTests—especially those involving nested or scalar functions such as `map()... | diff --git a/datafusion/sqllogictest/src/engines/datafusion_substrait_roundtrip_engine/runner.rs b/datafusion/sqllogictest/src/engines/datafusion_substrait_roundtrip_engine/runner.rs
index 2df93f0dede33..ccb877fbd629e 100644
--- a/datafusion/sqllogictest/src/engines/datafusion_substrait_roundtrip_engine/runner.rs
+++ b... | 4 | 3 | 0 | [{"id": "G0", "claim": "Can you add some comments explaining why `normalize` is needed, since it looks like it just clones the input expressions and the one line that removes aliases is hard to find.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
apache__datafusion__18954 | apache/datafusion | 18,954 | defect | 769f36732a284cec3d549bfcda50cb67684fb5dc | a7efa3c64a1838a6880195c02cfda08aa72103d8 | feat: add compression level configuration for JSON/CSV writers | ## Which issue does this PR close?
Closes #18947
## Rationale for this change
Currently, DataFusion uses default compression levels when writing compressed JSON and CSV files. For ZSTD, this means level 3, which prioritizes speed over compression ratio. Users working with large datasets who want to optimize fo... | diff --git a/datafusion/common/src/config.rs b/datafusion/common/src/config.rs
index 9ba2550c39413..1c52e252cc6b2 100644
--- a/datafusion/common/src/config.rs
+++ b/datafusion/common/src/config.rs
@@ -1661,6 +1661,7 @@ config_field!(bool, value => default_config_transform(value.to_lowercase().as_st
config_field!(usize... | 6 | 4 | 2 | [{"id": "G0", "claim": "The documented ZSTD valid range 1 to 22 is wrong because zstd compression levels can also be negative.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "new_with_level should take compression_level: u32 instead of Option<u32>,... | null |
apache__datafusion__19002 | apache/datafusion | 19,002 | defect | 73562e8ea14efac5ed6827dddb37362d7019266e | ad81d5b31be9d9052795f84172f41b79c7669073 | feat: integrate batch coalescer with repartition exec | ## 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.
-->
... | diff --git a/datafusion/core/tests/custom_sources_cases/provider_filter_pushdown.rs b/datafusion/core/tests/custom_sources_cases/provider_filter_pushdown.rs
index c80c0b4bf54ba..f4e905e1eda03 100644
--- a/datafusion/core/tests/custom_sources_cases/provider_filter_pushdown.rs
+++ b/datafusion/core/tests/custom_sources_c... | 9 | 6 | 2 | [{"id": "G0", "claim": "The elapsed_compute timer should be started before the poll_next_inner() call rather than after it.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When coalescer.finish() or coalescer.push_batch() returns an error, the `?` op... | null |
apache__datafusion__19118 | apache/datafusion | 19,118 | defect | 6746007826ebd3fcb5614bf87183674435bbb134 | 64151ebe55814be174fd6e60b0bf493732e366d3 | [Proto]: Serialization support for `AsyncFuncExec` | ## Which issue does this PR close?
Closes #19112
## Rationale for this change
Use async functions with Ballista
## What changes are included in this PR?
- New `AsyncFuncExecNode` proto definition
- to/from glue
- A roundtrip test
## Are these changes tested?
n/a
## Are there any user-facing c... | diff --git a/Cargo.lock b/Cargo.lock
index 08198cc49b72c..5a9bed2f3cc13 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2577,6 +2577,7 @@ name = "datafusion-proto"
version = "51.0.0"
dependencies = [
"arrow",
+ "async-trait",
"chrono",
"datafusion",
"datafusion-catalog",
diff --git a/datafusion/physical-plan/src... | 4 | 4 | 1 | [{"id": "G0", "claim": "The async_exprs() and input() accessors should return references instead of cloning, so the caller decides whether to clone.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added async-trait dependency in datafusion/proto... | null |
apache__datafusion__19246 | apache/datafusion | 19,246 | defect | c0e8bb501a7b62bb40c87edf16d46ee53bdaff73 | a3ae62ec2b2a6a91257cc1b751106efc2508f4fb | Use SortMergeJoinExec name consistently in physical plan outputs | ## Which issue does this PR close?
- closes #19238
## Rationale for this change
`SortMergeJoinExec` is currently displayed inconsistently across physical plan formats, see [join.slt](https://github.com/apache/datafusion/blob/20870c18a418ec081d44ecf8a90a30a95aa53138/datafusion/sqllogictest/test_files/joins.slt#L2... | diff --git a/datafusion/physical-plan/src/joins/sort_merge_join/exec.rs b/datafusion/physical-plan/src/joins/sort_merge_join/exec.rs
index b5b4325798f9d..ad9d31a4ab5b7 100644
--- a/datafusion/physical-plan/src/joins/sort_merge_join/exec.rs
+++ b/datafusion/physical-plan/src/joins/sort_merge_join/exec.rs
@@ -360,7 +360,... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remaining tests still refer to the old SortMergeJoin naming, and those test expectations need to be updated to the new name.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The DisplayAs format string could avoid hardcoding the no... | null |
apache__datafusion__19252 | apache/datafusion | 19,252 | defect | dc4e3ab473ef949558ab4540dda188e168262958 | 61260cd59318c5fc2410cdb899c65962f54fba04 | Fix panic for `GROUPING SETS(())` and handle empty-grouping aggregates |
## Which issue does this PR close?
* Closes #18974.
## Rationale for this change
The DataFusion CLI currently panics with an "index out of bounds" error when executing queries that use `GROUP BY GROUPING SETS(())`, such as:
```sql
SELECT SUM(v1) FROM generate_series(10) AS t1(v1) GROUP BY GROUPING SETS((... | diff --git a/datafusion/core/src/physical_planner.rs b/datafusion/core/src/physical_planner.rs
index 5bce862dc958c..d95d6ccd0eb67 100644
--- a/datafusion/core/src/physical_planner.rs
+++ b/datafusion/core/src/physical_planner.rs
@@ -1582,7 +1582,7 @@ impl DefaultPhysicalPlanner {
}
} else if group... | 5 | 3 | 1 | [{"id": "G0", "claim": "The exact-statistics guard should be `self.group_by.expr.is_empty()` instead of `is_true_no_grouping()`, because `GROUPING SETS(())` still produces exactly one row but `is_true_no_grouping()` returns false for it, so the code would fall through to the inexact branch and report the wrong cardinal... | null |
apache__datafusion__19313 | apache/datafusion | 19,313 | defect | fedddbcae49937ecc76bd5f2bf6acd00e9d15067 | a712c5df27f31b206a3b2dc9d3d8209f993647ee | Move `newlines_in_values` from `FileScanConfig` to `CsvSource` | ## Summary
This PR moves the CSV-specific `newlines_in_values` configuration option from `FileScanConfig` (a shared format-agnostic configuration) to `CsvSource` where it belongs.
- Add `newlines_in_values` field and methods to `CsvSource`
- Add `has_newlines_in_values()` method to `FileSource` trait (returns `false`... | diff --git a/datafusion/datasource-arrow/src/source.rs b/datafusion/datasource-arrow/src/source.rs
index 070e4fae6df65..936863d788591 100644
--- a/datafusion/datasource-arrow/src/source.rs
+++ b/datafusion/datasource-arrow/src/source.rs
@@ -460,9 +460,7 @@ impl FileSource for ArrowSource {
// Use the d... | 5 | 4 | 3 | [{"id": "G0", "claim": "newlines_in_values already belongs in the CsvOptions passed to the constructor, so CsvSource likely does not need a separate field with its own getter and setter.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Arrow source see... | null |
apache__datafusion__19339 | apache/datafusion | 19,339 | defect | 899a762230d0abc705482d8898d3793763b6afb4 | 056341adb1e7b6349c51ed43b2c5f85660371cbc | fix: Don't treat quoted column names as placeholder variables in SQL | ## Which issue does this PR close?
Closes #19249
## Rationale for this change
SQL allows for column names to begin with `@`, so long as the identifier is quoted. For example, `SELECT "@column" FROM table`. Both PostgreSQL and MySQL allow for this at least. The existing SQL parser treats these column names as p... | diff --git a/datafusion/sql/src/expr/identifier.rs b/datafusion/sql/src/expr/identifier.rs
index 4c23c7a818be4..f9e886cb555d6 100644
--- a/datafusion/sql/src/expr/identifier.rs
+++ b/datafusion/sql/src/expr/identifier.rs
@@ -37,7 +37,7 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
planner_context: &mut Planner... | 2 | 2 | 2 | [{"id": "G0", "claim": "The same fix (not treating quoted '@'-prefixed names as placeholder variables) is needed for the compound-identifier path in identifier.rs too.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests should also be added for unq... | null |
apache__datafusion__19343 | apache/datafusion | 19,343 | defect | 9d4fe15895cd7d0ef2ce3c5e95511e71b9f80b76 | 8f599b33908086e8ef6f05f9c957ecdb0005e81a | Minor: Make `ProjectionExpr::new` easier to use with constants | ## 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.
-->
... | diff --git a/datafusion/core/tests/execution/coop.rs b/datafusion/core/tests/execution/coop.rs
index b6f406e967509..d3bc9eb2d0a1a 100644
--- a/datafusion/core/tests/execution/coop.rs
+++ b/datafusion/core/tests/execution/coop.rs
@@ -653,7 +653,7 @@ async fn join_agg_yields(
let proj_expr = vec![ProjectionExpr::n... | 1 | 1 | 0 | [{"id": "G0", "claim": "In test_memory_after_projection, the 'd' and 'e' projection expressions should be simplified the same way as 'a' (using the new impl Into<String> form) instead of keeping \"d\".to_string()/\"e\".to_string().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int... | null |
apache__datafusion__19435 | apache/datafusion | 19,435 | defect | 65a6bc423142678528cdde03e4e2823952758328 | a413bd40b0fdbf9a0d0f8b9afab7221ab423ed5d | Add:arrow_metadata() UDF | ## Which issue does this PR close?
Closes #19356
## Rationale for this change
This PR implements the arrow_metadata UDF as requested in issue #19356.
## What changes are included in this PR?
Added arrow_metadata UDF
Refactored Tests
## Are these changes tested?
Yes.
## Are there any user-facing changes... | diff --git a/datafusion/functions/src/core/arrow_metadata.rs b/datafusion/functions/src/core/arrow_metadata.rs
new file mode 100644
index 0000000000000..2d873e3ff701f
--- /dev/null
+++ b/datafusion/functions/src/core/arrow_metadata.rs
@@ -0,0 +1,115 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new arrow_metadata UDF needs documentation added, following the pattern used by arrow_typeof.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__datafusion__19468 | apache/datafusion | 19,468 | defect | 5fedb84232b95b580df67880f9ca190b4a4435ea | 4e704e46a29149764ace349eca5c0d9537d84acd | Implement `partition_statistics` API for `NestedLoopJoinExec` | ## 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.
-->
... | diff --git a/datafusion/core/tests/physical_optimizer/partition_statistics.rs b/datafusion/core/tests/physical_optimizer/partition_statistics.rs
index 468d25e0e57d0..2bdc9c77cae0d 100644
--- a/datafusion/core/tests/physical_optimizer/partition_statistics.rs
+++ b/datafusion/core/tests/physical_optimizer/partition_stati... | 2 | 2 | 1 | [{"id": "G0", "claim": "Comments should be added explaining how statistics are propagated — in partition_statistics (including that empty join columns mean non-equijoin filter conditions are not handled) and in estimate_join_statistics specifying its behavior.", "category": "documentation", "verdict": "supported", "pri... | null |
apache__datafusion__19518 | apache/datafusion | 19,518 | defect | e5ca510dcf03f892bab0465619cffb0d23196d0c | 48d506357dda9090d08826086df1fe0e76668fee | Refactor duplicate code in `type_coercion/functions.rs` | ## 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.
-->
... | diff --git a/datafusion/expr/src/expr_schema.rs b/datafusion/expr/src/expr_schema.rs
index 691a8c508f801..dbba0f2914a6d 100644
--- a/datafusion/expr/src/expr_schema.rs
+++ b/datafusion/expr/src/expr_schema.rs
@@ -21,13 +21,11 @@ use crate::expr::{
InSubquery, Placeholder, ScalarFunction, TryCast, Unnest, WindowFun... | 5 | 2 | 0 | [{"id": "G0", "claim": "The (now-deprecated) `data_types` function was only ever used in the unit tests below, implying it may no longer be needed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The two chained `.map` calls in `coerce_types_fn... | null |
apache__datafusion__19546 | apache/datafusion | 19,546 | defect | 67b526a6202a65962a89cea14a9cbd560f66661a | 1097b7dd8d0298ef0c2e562a48a2e258cf2cd0a3 | Compute Dynamic Filters only when a consumer supports them | ## 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.
-->
... | diff --git a/datafusion/physical-expr/src/expressions/dynamic_filters.rs b/datafusion/physical-expr/src/expressions/dynamic_filters.rs
index 615d9cbbf61ac..a89acf53d87e7 100644
--- a/datafusion/physical-expr/src/expressions/dynamic_filters.rs
+++ b/datafusion/physical-expr/src/expressions/dynamic_filters.rs
@@ -294,6 +... | 3 | 3 | 2 | [{"id": "G0", "claim": "A test should be added showing that the filters are not computed when there are no downstream consumers of the dynamic filter.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new integration test is only worthwhile if its resu... | null |
apache__datafusion__19549 | apache/datafusion | 19,549 | defect | 83ed19235b700a2bd41283301cfd344cb5b565bc | 3cd4e67f7e0650e25bd4096ecb49355ddbba68b5 | Allow dropping qualified columns | ## Which issue does this PR close?
- Closes #19548
## Rationale for this change
Explanation in the issue. Motivation coming more concretely from datafusion-python https://github.com/apache/datafusion-python/issues/1305#issuecomment-3649891506
## What changes are included in this PR?
* Adds the test from ... | diff --git a/datafusion-cli/src/functions.rs b/datafusion-cli/src/functions.rs
index a45d57e8e952d..c2e4e16569cc8 100644
--- a/datafusion-cli/src/functions.rs
+++ b/datafusion-cli/src/functions.rs
@@ -421,7 +421,7 @@ impl TableFunctionImpl for ParquetMetadataFunc {
compression_arr.push(format!("{:?}", ... | 3 | 1 | 0 | [{"id": "G0", "claim": "The PR should clarify what should happen when an unqualified name passed to drop_columns is ambiguous.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation for drop_columns should be updated somewhere appropriate, s... | null |
apache__datafusion__19561 | apache/datafusion | 19,561 | defect | 3420a2d4adb9d387aadf13abd84daabbd3be0a29 | 38cf2dd93acaef67ec001ccab60dc074b937953f | fix: predicate cache stats calculation | ## Which issue does this PR close?
- Closes #19334
## Rationale for this change
Explained in issue
## What changes are included in this PR?
Changed counter to gauge to set value provided by arrow-rs correctly
## Are these changes tested?
Yes, have added a new test which fails with old code as it re... | diff --git a/datafusion/core/tests/parquet/filter_pushdown.rs b/datafusion/core/tests/parquet/filter_pushdown.rs
index e3a191ee9ade2..f84f91f879ae6 100644
--- a/datafusion/core/tests/parquet/filter_pushdown.rs
+++ b/datafusion/core/tests/parquet/filter_pushdown.rs
@@ -644,6 +644,22 @@ async fn predicate_cache_pushdown_... | 1 | 1 | 0 | [{"id": "G0", "claim": "It may be subtle why predicate_cache_inner_records is a Gauge, so a comment explaining the context should be added to the field (and also below).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion__19602 | apache/datafusion | 19,602 | defect | 9a9ff8d6162b7391736b0b7c82c00cb35b0652a1 | 1e684a1e2ab97129905b2176cfa677d8a3ef828c | perf: optimize `HashTableLookupExpr::evaluate` | ## 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.
-->
... | diff --git a/datafusion/physical-plan/src/joins/hash_join/partitioned_hash_eval.rs b/datafusion/physical-plan/src/joins/hash_join/partitioned_hash_eval.rs
index 4c437e813139d..aafc2acdd1c74 100644
--- a/datafusion/physical-plan/src/joins/hash_join/partitioned_hash_eval.rs
+++ b/datafusion/physical-plan/src/joins/hash_j... | 3 | 3 | 0 | [{"id": "G0", "claim": "Instead of initializing a MutableBuffer and passing a slice, the code could use BooleanBuffer::collect_bool, which is faster.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code should use with_hashes or otherwise reuse t... | null |
apache__datafusion__19626 | apache/datafusion | 19,626 | defect | 70daf88251af08db921439f8d7b0a4d044f73d25 | 68501c868a7413c5f462ad78b557a3078a1452a1 | feat: implement metrics for AsyncFuncExec | ## Which issue does this PR close?
- Closes #19623
## Rationale for this change
Explained in issue
## What changes are included in this PR?
Implement baseline metrics for `AsyncFuncExec` operator
## Are these changes tested?
Have added a test with PR
## Are there any user-facing changes?
Ther... | diff --git a/datafusion/core/tests/user_defined/user_defined_async_scalar_functions.rs b/datafusion/core/tests/user_defined/user_defined_async_scalar_functions.rs
index 168d81fc6b44c..5fb5bd7e232e6 100644
--- a/datafusion/core/tests/user_defined/user_defined_async_scalar_functions.rs
+++ b/datafusion/core/tests/user_de... | 3 | 3 | 1 | [{"id": "G0", "claim": "The elapsed_compute timer added in the async block would count the await time, which BaselineMetrics' elapsed_compute is not meant to count, so the time counting should be removed for now and implemented correctly in a follow-up PR.", "category": "correctness", "verdict": "supported", "priority"... | null |
apache__datafusion__19719 | apache/datafusion | 19,719 | defect | 209a0a2e86dda54e7dc00f5715ed1e35ea1af3cb | 760ce190859c70d181e964fa4817d4266d7e09e7 | Project sort expressions in StreamingTable | ## Which issue does this PR close?
- Closes #19717
## Rationale for this change
If we have a `StreamingTable` that has both physical sort expressions and projection, we will get errors when trying to execute the plan if the sort expressions are not included in the projection.
## What changes are included in... | diff --git a/datafusion/catalog/src/streaming.rs b/datafusion/catalog/src/streaming.rs
index 31669171b291a..f8ef68d077af3 100644
--- a/datafusion/catalog/src/streaming.rs
+++ b/datafusion/catalog/src/streaming.rs
@@ -20,19 +20,18 @@
use std::any::Any;
use std::sync::Arc;
-use crate::Session;
-use crate::TableProvid... | 1 | 1 | 0 | [{"id": "G0", "claim": "A code comment explaining the projection adjustment in StreamingTable::scan should be added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion__19854 | apache/datafusion | 19,854 | defect | 1ab7e4184e391d1950fd2cfb341c4e79a5aa9bf1 | 860087281f6505c358ea4df844f42921ce016d13 | Add FilterExecBuilder to avoid recomputing properties multiple times | - Closes #19608,
- replaces #19619
| diff --git a/datafusion/core/src/physical_planner.rs b/datafusion/core/src/physical_planner.rs
index 2715ad98202cb..585fb7864b9fd 100644
--- a/datafusion/core/src/physical_planner.rs
+++ b/datafusion/core/src/physical_planner.rs
@@ -39,7 +39,7 @@ use crate::physical_expr::{create_physical_expr, create_physical_exprs};
... | 4 | 3 | 0 | [{"id": "G0", "claim": "The builder silently defaults batch_size to FILTER_EXEC_DEFAULT_BATCH_SIZE, so it would be easy to overlook; make batch_size an Option<usize> that throws an internal error when unset, or require batch_size in the constructor.", "category": "design", "verdict": "opposed", "priority": "P2", "scope... | null |
apache__datafusion__19865 | apache/datafusion | 19,865 | defect | 3ea21aa332b2916e59b446317868a9ecffb30022 | be3cc4afc70dab31b28c7b656a91ead5f3a19097 | feat(spark): Add `SessionStateBuilderSpark` to datafusion-spark | ## Which issue does this PR close?
- Closes #19843
## Rationale for this change
Currently, combining DataFusion's default features with Spark features is awkward because:
1. Expression planners must be registered **before** calling `with_default_features().build()` to take precedence
2. UDFs must be register... | diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 6235679d5a05d..898627a9b4778 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -217,6 +217,8 @@ jobs:
run: cargo check --profile ci --no-default-features -p datafusion --features=serde
- name: Check data... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new `with_spark_features` method should instead be provided by an extension trait in datafusion-spark implemented on SessionStateBuilder, so core does not need to depend on datafusion-spark.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__datafusion__19890 | apache/datafusion | 19,890 | defect | d90d0746d64bf6e91a81b3ec6954369bd0851bb2 | b81e96a3f58071ebe89dec128d6330471c41b64a | Fix/parquet opener page index policy | ## Which issue does this PR close?
- Closes #19839.
## Rationale for this change
The [ParquetOpener](cci:2://file:///Users/aviralgarg/Everything/datafusion/datafusion/datasource-parquet/src/opener.rs:69:0-122:1) was using `ArrowReaderOptions::with_page_index(true)`, which internally sets `PageIndexPolicy::Requ... | diff --git a/datafusion/core/tests/parquet/issue_19839.rs b/datafusion/core/tests/parquet/issue_19839.rs
new file mode 100644
index 0000000000000..8e9479d0482fd
--- /dev/null
+++ b/datafusion/core/tests/parquet/issue_19839.rs
@@ -0,0 +1,76 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more co... | 5 | 4 | 1 | [{"id": "G0", "claim": "The pull request should not add a separate issue_19839.rs test file and register it with a blank line plus `mod issue_19839;` in mod.rs; those additions should be reverted so the test lives in the existing parquet test module.", "category": "maintainability", "verdict": "supported", "priority": ... | null |
apache__datafusion__19977 | apache/datafusion | 19,977 | defect | e5e76366a6200dcd7b85cc030128a191e3763dd1 | a9891bb5ff46262a2f388497112ba83b9cffffcc | feat: Show the number of matched Parquet pages in `DataSourceExec` | ## Which issue does this PR close?
- Closes #19875.
## Rationale for this change
Show the number of matched (and pruned) pages in the explain analyze plan to help make decisions about file optimization.
Example:
```sql
DataSourceExec: ..., metrics=[
...
page_index_rows_pruned=1.00 K total → 100 ma... | diff --git a/datafusion/core/src/datasource/physical_plan/parquet.rs b/datafusion/core/src/datasource/physical_plan/parquet.rs
index ce2b05e6d3b61..9b4733dbcc178 100644
--- a/datafusion/core/src/datasource/physical_plan/parquet.rs
+++ b/datafusion/core/src/datasource/physical_plan/parquet.rs
@@ -995,6 +995,7 @@ mod tes... | 2 | 1 | 0 | [{"id": "G0", "claim": "The docs statement that `DataSourceExec` with `ParquetSource` gains these metrics when predicate pushdown is enabled is not true, since the metrics appear with predicate pushdown off and even without any filter.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "pre... | null |
apache__datafusion__20744 | apache/datafusion | 20,744 | defect | 73fbd4807011ee102c9db67d40a511d0ece8c65a | dcbb70d2a2ea52725d0ba1f807ea9d6a96be7865 | fix: insert placeholder type inference showing wrong type when there is function wrapped placeholder (unknown type) | ## Which issue does this PR close?
- Closes #20544.
## Rationale for this change
Please see #20544 for details. I wanted to open a PR to discuss if API change is ok for this fix
## What changes are included in this PR?
This PR changes FieldRef to Option<FieldRef> for placeholders and adds test case for this.... | diff --git a/datafusion/sql/src/expr/value.rs b/datafusion/sql/src/expr/value.rs
index bd75ac36306fb..13a47f545cf7e 100644
--- a/datafusion/sql/src/expr/value.rs
+++ b/datafusion/sql/src/expr/value.rs
@@ -45,7 +45,7 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
pub(crate) fn parse_value(
&self,
v... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added construction of prepare_param_data_types in statement.rs (if-let over the highest key with a vec![] fallback) can be rewritten more idiomatically.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
apache__datafusion__20963 | apache/datafusion | 20,963 | defect | ab2823475d0c79a749120ae354572ab85c043b78 | 87d266a8937617667b2919fdc9cadced16dd2056 | [Minor]: support window functions in order by expressions | ## Which issue does this PR close?
- Closes #608.
## Rationale for this change
#608 has details but as @alamb describes in https://github.com/apache/datafusion/issues/608#issuecomment-4034162591
```
SELECT c2
FROM test
ORDER BY max(c3) OVER (ORDER BY c9);
```
fails with:
```
This feature is not... | diff --git a/datafusion/sql/src/select.rs b/datafusion/sql/src/select.rs
index 7e291afa04b6e..4e51e189b480f 100644
--- a/datafusion/sql/src/select.rs
+++ b/datafusion/sql/src/select.rs
@@ -261,7 +261,7 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
select_exprs: mut select_exprs_post_aggr,
havi... | 2 | 2 | 0 | [{"id": "G0", "claim": "Rather than adding a new test file (window_order_by.slt), integrate these tests into one of the existing test files such as window.slt or orderby.slt.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "qualify_window_func_exprs is onl... | null |
apache__datafusion__21052 | apache/datafusion | 21,052 | defect | d138c36cb08c2dc028b29bbd20853b24cf0f3b8b | 6669e8b845623545ed71b217f62778efea6ecd7d | fix: apply the left side schema on the right side in set expressions | ## 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.
-->
... | diff --git a/datafusion/expr/src/logical_plan/builder.rs b/datafusion/expr/src/logical_plan/builder.rs
index 2e23fef1da768..16bbffabe29ba 100644
--- a/datafusion/expr/src/logical_plan/builder.rs
+++ b/datafusion/expr/src/logical_plan/builder.rs
@@ -593,7 +593,23 @@ impl LogicalPlanBuilder {
self,
expr... | 1 | 1 | 0 | [{"id": "G0", "claim": "Cloning the expression for each aliased field is typically expensive; the loop should avoid the clone, e.g. by mapping over the iterator instead of cloning in place.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion__21074 | apache/datafusion | 21,074 | defect | 6ef4cef9d5b1d6f106ae608a3c95aae61f79c53c | 98cdc250977c4f68ef580aec45dddef3ec5525c5 | feat: change approx percentile/median UDFs to return floats | ## Which issue does this PR close?
- Closes #18092.
## Rationale for this change
1. Migrating to the modern TypeSignature API: [264030c/datafusion/expr-common/src/signature.rs](https://github.com/apache/datafusion/blob/264030cca76d0bdb4d8809f252b422e72624a345/datafusion/expr-common/src/signature.rs)
2. Coer... | diff --git a/datafusion/core/tests/dataframe/dataframe_functions.rs b/datafusion/core/tests/dataframe/dataframe_functions.rs
index 014f356cd64cd..d790f9cc25a1e 100644
--- a/datafusion/core/tests/dataframe/dataframe_functions.rs
+++ b/datafusion/core/tests/dataframe/dataframe_functions.rs
@@ -422,7 +422,7 @@ async fn te... | 6 | 5 | 2 | [{"id": "G0", "claim": "The TODO comment above the now-deprecated INTEGERS/NUMERICS arrays should be removed too.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether these aggregate.slt test cases, whose expected error messa... | null |
apache__datafusion__21081 | apache/datafusion | 21,081 | defect | be273d69e1181441fcdfd8b7d2c0e851bf50cd31 | ddfd8f3cb37894f6f94a510feecab9d7104098e7 | feat(stats): cap NDV at row count in statistics estimation | ## Which issue does this PR close?
- Part of #20766
## Rationale for this change
After a filter reduces a table from 100 to 10 rows, or a LIMIT 10 caps the output, the NDV (e.g. 80) should not exceed the new row count. Without capping, join cardinality estimation uses an inflated denominator, leading to inaccurate e... | diff --git a/datafusion/common/src/stats.rs b/datafusion/common/src/stats.rs
index f263c905faf6b..a210155b9e416 100644
--- a/datafusion/common/src/stats.rs
+++ b/datafusion/common/src/stats.rs
@@ -551,6 +551,10 @@ impl Statistics {
}
Precision::Absent => Precision::Absent,
... | 4 | 3 | 2 | [{"id": "G0", "claim": "Capping NDV at possibly-inexact row counts (with_fetch treating the fetch hard cap and the skip estimate alike, and the filter/join caps reducing inexact NDV) may overestimate or unsafely reduce NDV, so the change should either be more conservative with inexact statistics or document how inexact... | null |
apache__datafusion__21179 | apache/datafusion | 21,179 | defect | 7cbc6b4383e6998b6a3a94ce1018a01e03c50be8 | df80898983b0f8db6445c0b1c7eb880b90d1e22c | feat[expr-common]: add REE arithmetic coercion for numeric and decimal | ## 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.
-->
... | diff --git a/datafusion/expr-common/src/type_coercion/binary.rs b/datafusion/expr-common/src/type_coercion/binary.rs
index fa109e38a4382..7b87b01044735 100644
--- a/datafusion/expr-common/src/type_coercion/binary.rs
+++ b/datafusion/expr-common/src/type_coercion/binary.rs
@@ -379,6 +379,16 @@ fn math_decimal_coercion(
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Is there an end to end (e.g. SQL in SLT) test that can confirm the new REE arithmetic coercion behaviour, or is adding one blocked by missing REE support elsewhere in the codebase?", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion__21293 | apache/datafusion | 21,293 | defect | bc2b36cf56846e0c697b0f8b98619f346a72a9bf | 2f08c97e5c83379443935026d8eee036a3d81c6b | fix: use spill writer's schema instead of the first batch schema for spill files | ## 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.
-->
... | diff --git a/datafusion/core/tests/union_nullable_spill.rs b/datafusion/core/tests/union_nullable_spill.rs
new file mode 100644
index 0000000000000..c5ef2387d3cdc
--- /dev/null
+++ b/datafusion/core/tests/union_nullable_spill.rs
@@ -0,0 +1,162 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or mor... | 2 | 1 | 1 | [{"id": "G0", "claim": "The newly added unit tests in InProgressSpillFile may be unnecessary given the end-to-end tests, and could be dropped.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Do not add a new standalone test binary (union_nullable_spill.rs)... | null |
apache__datafusion__21389 | apache/datafusion | 21,389 | defect | c17c87c575be916c6501df8a588e3c2614a9dc6f | 41f9312460ed61e4cc32ec19b8a1848e7f90a0c6 | Add `arrow_field(expr)` scalar UDF | ## Which issue does this PR close?
- Related to #21387 and #19435
## Rationale for this change
DataFusion has individual introspection functions (`arrow_typeof`, `arrow_metadata`, `is_nullable`) but no single function that returns the complete Arrow `Field` representation. Having `arrow_field(expr)` that returns a s... | diff --git a/datafusion/functions/src/core/arrow_field.rs b/datafusion/functions/src/core/arrow_field.rs
new file mode 100644
index 0000000000000..7159f6e1bbb67
--- /dev/null
+++ b/datafusion/functions/src/core/arrow_field.rs
@@ -0,0 +1,162 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more c... | 8 | 8 | 1 | [{"id": "G0", "claim": "The doc example should show the field name `lit` that the function actually returns for a literal, not `Int64(1)`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The data type string should be built with `field.data_type().... | null |
apache__datafusion__21438 | apache/datafusion | 21,438 | defect | 0b8c4c53e4e5b8993ba3a0878b84d145d1f7a8e4 | 55703cd22d60a673318cc9a9355cd99e395dd5e9 | fix: grouping with alias | ## Which issue does this PR close?
- Closes https://github.com/apache/datafusion/issues/21411
## Rationale for this change
When you have an alias on `grouping` function via dataframe API, you get an error. This resolves that error.
## What changes are included in this PR?
Check for alias expressions in o... | diff --git a/datafusion/core/tests/dataframe/mod.rs b/datafusion/core/tests/dataframe/mod.rs
index 1c661744e0867..d402c41b15513 100644
--- a/datafusion/core/tests/dataframe/mod.rs
+++ b/datafusion/core/tests/dataframe/mod.rs
@@ -6852,3 +6852,38 @@ async fn test_duplicate_state_fields_for_dfschema_construct() -> Result<... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new Expr::Alias branch can silently drop a grouping expression when the inner expression is itself another alias (e.g. grouping(col(\"a\")).alias(\"x\").alias(\"g\")), leaving neither projection_exprs nor new_agg_expr updated; aliases should be unwrapped recursively until the underlying aggr... | null |
apache__datafusion__21445 | apache/datafusion | 21,445 | defect | c17c87c575be916c6501df8a588e3c2614a9dc6f | 5de6ac1fefec4f65f76974ce1734da60fa131f4f | fix: PostgreSQL dialect can not support tinyint type | ## Which issue does this PR close?
- No linked issue.
## Rationale for this change
DataFusion's PostgreSQL unparser should emit PostgreSQL-compatible SQL for integer casts.`Int8` was still being rendered as `TINYINT`, which is not valid PostgreSQL syntax. This change makes PostgreSQL output `SMALLINT` instead.... | diff --git a/datafusion/sql/src/unparser/dialect.rs b/datafusion/sql/src/unparser/dialect.rs
index 9e0683bdd7b20..ee31190b68b98 100644
--- a/datafusion/sql/src/unparser/dialect.rs
+++ b/datafusion/sql/src/unparser/dialect.rs
@@ -100,6 +100,12 @@ pub trait Dialect: Send + Sync {
ast::DataType::BigInt(None)
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a test that the default (non-PostgreSQL) dialect path still produces TINYINT when unparsing Int8, for reference and to prevent degradation.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion__21454 | apache/datafusion | 21,454 | defect | 603bfb4ed873e5d69c73a2b7a0e80130f46abd76 | 799635a1d2b3ae333511023175439167bdc75e58 | fix(sql): return planner error for malformed typed literals | ## Which issue does this PR close?
- Closes #21431.
## Rationale for this change
Planning a malformed typed literal such as `time 17542368000000000` currently panics in `datafusion-sql` because the planner assumes every `TypedString` payload is string-backed and calls `into_string().unwrap()`.
Invalid SQL should su... | diff --git a/datafusion/sql/src/expr/mod.rs b/datafusion/sql/src/expr/mod.rs
index fefbf134bd11c..a479317890643 100644
--- a/datafusion/sql/src/expr/mod.rs
+++ b/datafusion/sql/src/expr/mod.rs
@@ -306,10 +306,22 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
data_type,
value,
... | 1 | 1 | 0 | [{"id": "G0", "claim": "raw_value is only used in the error branch, introducing a redundant string allocation on the happy path; exclude it from the error message (e.g. return plan_err! on into_string() failing).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion__21460 | apache/datafusion | 21,460 | defect | 5ba06ac94ef5aea6796200e429fe551216c9c68d | 7778fd6161caaadf28b2d2d6520edfc4a472dac6 | fix: FilterExec should drop projection when apply projection pushdown | ## 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.
-->
... | diff --git a/datafusion/physical-plan/src/filter.rs b/datafusion/physical-plan/src/filter.rs
index afe2b0ae810a3..8720d5f7d223b 100644
--- a/datafusion/physical-plan/src/filter.rs
+++ b/datafusion/physical-plan/src/filter.rs
@@ -568,6 +568,10 @@ impl ExecutionPlan for FilterExec {
return FilterExecBuil... | 1 | 1 | 0 | [{"id": "G0", "claim": "The regression coverage added by this pull request is too narrowly focused, so higher-level tests (via SQL, or if that is not possible via a plan builder) should be added in case other issues are being missed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
apache__datafusion__21513 | apache/datafusion | 21,513 | defect | c17c87c575be916c6501df8a588e3c2614a9dc6f | 61ef7f43dd8c154c79820d06eb6250794d97cdc8 | sql: render PostgreSQL array literals as ARRAY[...] in unparser | ## Which issue does this PR close?
- Closes #.
## Rationale for this change
PostgreSQL array literals should be rendered using `ARRAY[...]` syntax when unparsing SQL. Without this, roundtripped PostgreSQL SQL can lose the dialect-specific array form and emit a plain bracketed array literal instead.
## What ... | diff --git a/datafusion/sql/src/unparser/dialect.rs b/datafusion/sql/src/unparser/dialect.rs
index 9e0683bdd7b20..4efd8c0c3bb28 100644
--- a/datafusion/sql/src/unparser/dialect.rs
+++ b/datafusion/sql/src/unparser/dialect.rs
@@ -51,6 +51,11 @@ pub trait Dialect: Send + Sync {
/// Return the character used to quote... | 2 | 2 | 1 | [{"id": "G0", "claim": "The trait method should be named something like use_array_keyword_for_array_literals rather than array_keyword.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The request is to add a test that exercises the second modifie... | null |
apache__datafusion__21527 | apache/datafusion | 21,527 | defect | 70e77309c66c6615e00c3710ad3472cfb16c23ac | 0652ed8c52c54cfaa9ba23dc073dae752e18f31c | fix: impl `handle_child_pushdown_result` for `SortExec` | ## Which issue does this PR close?
- Closes #21526.
## Rationale for this change
`FilterPushdown` does not push filters through `SortExec` because `SortExec` lacks an implementation of `handle_child_pushdown_result`. When a `FilterExec` sits above a plain `SortExec` (no fetch), the filter can safely be moved b... | diff --git a/datafusion/core/tests/physical_optimizer/filter_pushdown.rs b/datafusion/core/tests/physical_optimizer/filter_pushdown.rs
index a255c07545829..70e369c9a6774 100644
--- a/datafusion/core/tests/physical_optimizer/filter_pushdown.rs
+++ b/datafusion/core/tests/physical_optimizer/filter_pushdown.rs
@@ -25,7 +2... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new Rust unit tests for filter pushdown through SortExec in filter_pushdown.rs should be added as sqllogictest tests instead.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "SortExec should not special-case FilterPushdownPhase... | null |
apache__datafusion__21603 | apache/datafusion | 21,603 | defect | e0fd16ee3fc88e58f8c3e2f63a43ccf3d4ab2f9e | 6d380a1052b06b8becfc514d3426ec434377d618 | fix: Make conversion from FileDecryptionProperties to ConfigFileDecryptionProperties fallible | ## Which issue does this PR close?
- Closes #21602.
## Rationale for this change
Fail quickly with a helpful error if we're unable to represent a `FileDecryptionProperties` instance as `ConfigFileDecryptionProperties`
## What changes are included in this PR?
* Change the implementation of `From<&Arc<File... | diff --git a/datafusion-examples/examples/data_io/parquet_encrypted.rs b/datafusion-examples/examples/data_io/parquet_encrypted.rs
index 26361e9b52be0..f73c538d1c4d9 100644
--- a/datafusion-examples/examples/data_io/parquet_encrypted.rs
+++ b/datafusion-examples/examples/data_io/parquet_encrypted.rs
@@ -71,7 +71,7 @@ p... | 3 | 3 | 2 | [{"id": "G0", "claim": "Conversion via `footer_key(None)` can still succeed when a key retriever is configured, silently losing column decryption info; the PR should reject all key-retriever-based `FileDecryptionProperties` directly and add a test for that case.", "category": "correctness", "verdict": "supported", "pri... | null |
apache__datafusion__21694 | apache/datafusion | 21,694 | defect | 4a5d1301cf7a8a725ed944b2252386ef2f6f5d03 | a94c164d9d987602d6d63325f1d2ee2645e15c14 | feat(unparser): Keep inner join `Filter → TableScan` predicates to `WHERE` instead of moving to `JOIN ON` | ## Which issue does this PR close?
Partially addresses https://github.com/apache/datafusion/issues/13156 (inner joins only; outer joins require additional work)
When the DataFusion optimizer pushes filter predicates into `TableScan` nodes (e.g. via `FilterPushdown`), the unparser's `try_transform_to_simple_table_... | diff --git a/datafusion/sql/src/unparser/plan.rs b/datafusion/sql/src/unparser/plan.rs
index c0b77b9dba88a..bca0568b52f9d 100644
--- a/datafusion/sql/src/unparser/plan.rs
+++ b/datafusion/sql/src/unparser/plan.rs
@@ -683,28 +683,37 @@ impl Unparser<'_> {
let join_filters = if table_scan_filters.is_em... | 2 | 2 | 0 | [{"id": "G0", "claim": "The inner-join branch of `plan_to_sql` now juggles several responsibilities (predicate placement and AND folding for outer joins), so a small helper should be extracted to keep the section focused on intent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int... | null |
apache__datafusion__21721 | apache/datafusion | 21,721 | defect | 8a650f5ad62ec32dbae07278499be785b01b4055 | 7cbd9a689a57f31158dce7b8ebdcb1a5e686f35a | fix: Prevent CLI crash on wide tables | ## 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.
-->
... | diff --git a/datafusion-cli/src/print_format.rs b/datafusion-cli/src/print_format.rs
index 6a6a0370b08ac..0443a7a289602 100644
--- a/datafusion-cli/src/print_format.rs
+++ b/datafusion-cli/src/print_format.rs
@@ -97,7 +97,7 @@ fn keep_only_maxrows(s: &str, maxrows: usize) -> String {
let last_line = &lines[lines.l... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request's added code is not rustfmt-clean, so the formatting needs to be fixed or CI will fail.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__datafusion__21725 | apache/datafusion | 21,725 | defect | b75df6f01eed95fbecae2dd4ab4b55ffc6b852a6 | 22826eb0188231895bac1e25506376a558e9c538 | feat: remove `__unnest_placeholder` from struct unnest projection | ## 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.
-->
... | diff --git a/datafusion/sql/src/select.rs b/datafusion/sql/src/select.rs
index 82cca91d4e8ae..09d8566c4a19e 100644
--- a/datafusion/sql/src/select.rs
+++ b/datafusion/sql/src/select.rs
@@ -24,13 +24,17 @@ use crate::query::to_order_by_exprs_with_select;
use crate::utils::{
CheckColumnsMustReferenceAggregatePurpos... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new documentation line should read \"Each field of the struct can be accessed via `\"<table>.<struct>.<field>\"`.\" instead of \"could be accessed\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since existing queries... | null |
apache__datafusion__21744 | apache/datafusion | 21,744 | defect | 95157ef206685850a558c98408c925c8dd524a08 | 184f5e0d9f54112c1cb9640bf0e47f385548421a | Fix PushdownSort dropping LIMIT when eliminating SortExec | ## Which issue does this PR close?
When `PushdownSort` removes a `SortExec` because a source returns `Exact` (guaranteeing ordering), any `fetch` (LIMIT) on the `SortExec` is silently dropped if the underlying plan does not support `with_fetch()`.
For example, `ProjectionExec` supports `try_pushdown_sort` (delega... | diff --git a/datafusion/core/tests/physical_optimizer/pushdown_sort.rs b/datafusion/core/tests/physical_optimizer/pushdown_sort.rs
index 2f66aa3c3e209..e2700c3174a16 100644
--- a/datafusion/core/tests/physical_optimizer/pushdown_sort.rs
+++ b/datafusion/core/tests/physical_optimizer/pushdown_sort.rs
@@ -32,10 +32,10 @@... | 3 | 1 | 1 | [{"id": "G0", "claim": "Would be better if the PR included some slt (sqllogictest) tests.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new else branch should return Transformed::no, since with no fetch/limit there is no transformation.", "category... | null |
apache__datafusion__21885 | apache/datafusion | 21,885 | defect | 54a551583bb13356c42e3c1d9e11b63079d2e40b | 6847a167ed34bb7f14edcc362439e5ccc7e24192 | fix(proto): correctly serialize FilterExec empty projection | ## 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.
-->
... | diff --git a/datafusion/proto/src/physical_plan/mod.rs b/datafusion/proto/src/physical_plan/mod.rs
index 6145df65032e3..a9f4ea73a0667 100644
--- a/datafusion/proto/src/physical_plan/mod.rs
+++ b/datafusion/proto/src/physical_plan/mod.rs
@@ -716,18 +716,19 @@ impl protobuf::PhysicalPlanNode {
})?;
... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add a comment explaining the new full-projection detection code, such as one noting the projection is full and `None` is stored in that case.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Refactor the new FilterExec projec... | null |
apache__datafusion__21993 | apache/datafusion | 21,993 | defect | d64898205d6565543fec0ceb5641d76776023f08 | da8b73d45013daf6f03f2edf6dc02ddb66905f9a | feat: type-keyed extensions map for PartitionedFile | ## Which issue does this PR close?
- Closes #.
(no tracking issue yet; happy to file one if this direction is wanted)
## Rationale for this change
`PartitionedFile.extensions` is currently a single `Option<Arc<dyn Any + Send + Sync>>` slot. That means two independent components cannot both attach their own ... | diff --git a/datafusion-examples/examples/data_io/parquet_advanced_index.rs b/datafusion-examples/examples/data_io/parquet_advanced_index.rs
index 9e69c7f15a841..ec817c3968660 100644
--- a/datafusion-examples/examples/data_io/parquet_advanced_index.rs
+++ b/datafusion-examples/examples/data_io/parquet_advanced_index.rs... | 3 | 3 | 3 | [{"id": "G0", "claim": "ExtendedStatistics::set_extension now asks callers to pass an Arc<T>, breaking the existing T-taking public API (and the documented example), and the reviewer asks to keep set_extension<T>(value: T) wrapping in Arc internally and add a separate set_extension_arc only if needed.", "category": "de... | null |
apache__datasketches-java__189 | apache/datasketches-java | 189 | defect | d809fffde5e64d84c57d1ca5148359d9fc36ac06 | ce23daa6ffe83088723e6e5930890402eabe7a20 | Support Filter in tuple sketches | This PR adds support for filtering tuple sketches values based on summary | diff --git a/src/main/java/com/yahoo/sketches/tuple/Filter.java b/src/main/java/com/yahoo/sketches/tuple/Filter.java
new file mode 100644
index 000000000..8f38969d7
--- /dev/null
+++ b/src/main/java/com/yahoo/sketches/tuple/Filter.java
@@ -0,0 +1,49 @@
+package com.yahoo.sketches.tuple;
+
+import java.util.function.Pre... | 4 | 3 | 2 | [{"id": "G0", "claim": "Removing non-matching entries from the sketch produces a result that is not a valid sketch, making errors in subsequent uses worse in ways that leave the error bounds unknown.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Filt... | null |
apache__datasketches-java__300 | apache/datasketches-java | 300 | defect | ea15505902b92a29367c1ba80961f6d0f7d10fca | 806a514ac100da15057338259233df965f933647 | Theta get estimate | Improves getEstimate() performance on Theta Sketches by a factor between 1.5 and 2. | diff --git a/src/main/java/org/apache/datasketches/WhichSketch.java b/src/main/java/org/apache/datasketches/WhichSketch.java
new file mode 100644
index 000000000..e10bddc12
--- /dev/null
+++ b/src/main/java/org/apache/datasketches/WhichSketch.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF... | 1 | 1 | 1 | [{"id": "G0", "claim": "The file WhichSketch.java looks like an accidental check-in — a stub class whose whichSketch(byte[]) method just returns null was committed as part of this pull request.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__datasketches-java__320 | apache/datasketches-java | 320 | defect | bb424901bc97062b4f05081b11c77143f88ac586 | 2fe4940ea0f02e61b0bb9bc19d623afcf80d666d | Renaming | The use of "key" had multiple meanings.
In some places it meant the user supplied key and other places it meant
the hash of the user key. This was very confusing. This has been fixed.
Similarly "keys_" meant a compact array of hashes and in other places a
hash table. The arrays keys_ and summaries_ in Sketch\<S\>... | diff --git a/src/main/java/org/apache/datasketches/theta/CompactSketch.java b/src/main/java/org/apache/datasketches/theta/CompactSketch.java
index 43c7504d0..dab61af90 100644
--- a/src/main/java/org/apache/datasketches/theta/CompactSketch.java
+++ b/src/main/java/org/apache/datasketches/theta/CompactSketch.java
@@ -75,... | 5 | 5 | 0 | [{"id": "G0", "claim": "LGTM reports 1 new alert for a spurious Javadoc @param tag introduced by this change (the @param name no longer matches the constructor parameter).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out field decl... | null |
apache__datasketches-java__321 | apache/datasketches-java | 321 | defect | a182ae3075eac3f67141ff12af98ddb89a4d2cb9 | d90ab751dca0a73bad335fa45e81c0c534d3b3a3 | Improvements in Theta Sketch to (hopefully) eliminate the | Misinterpretation of SingleItemSketches.
This was driven by Hive issue Number 50.
We should try to test this in the field. | diff --git a/src/main/java/org/apache/datasketches/theta/DirectCompactOrderedSketch.java b/src/main/java/org/apache/datasketches/theta/DirectCompactOrderedSketch.java
index b68bc083d..6a8821385 100644
--- a/src/main/java/org/apache/datasketches/theta/DirectCompactOrderedSketch.java
+++ b/src/main/java/org/apache/datask... | 4 | 4 | 1 | [{"id": "G0", "claim": "The family-ID check in PreambleUtil.isSingleItem should refer to a constant defined in Family rather than the literal 3.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The empty branch in Sketch.heapifyFromMemory was left... | null |
apache__datasketches-java__422 | apache/datasketches-java | 422 | defect | c29f4c1b9fd8e4f1e3a180c5a9bea79be5f81e12 | 12d1874c4c3e05d74c43d544a810cea0726aaefa | This fixes all of the "High", "Error", and "Warnings" issues detected by | CodeQL. However, there were some that I classified as "Won't Fix" and "False Positive". But I'm not sure if CodeQL will remember those markings. | diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index edcce802d..9faa687e4 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -8,6 +8,7 @@ on:
branches: [ 'master' ]
schedule:
- cron: '10 17 * * 4'
+ workflow_dispatch:
jobs:
analyze:
diff --git a... | 4 | 3 | 0 | [{"id": "G0", "claim": "The test condition `lgK < 8` in checkUnionHeapifyRebuildAfterMerge is always false (lgK is fixed at 12), so the comparison is useless and should be removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test condition `l... | null |
apache__datasketches-java__486 | apache/datasketches-java | 486 | defect | 4d43fc30d33da9838011d703617432da7cc42386 | e2b9d3fa72fbffdf412af8fee77014f3ebe8f73a | Fix Issue 484. | The serDe of min and max were mingled with the serDe of Boolean Items and they should not have been.
The fix was in two places. Added a test for this issue. | diff --git a/src/main/java/org/apache/datasketches/kll/KllDirectCompactItemsSketch.java b/src/main/java/org/apache/datasketches/kll/KllDirectCompactItemsSketch.java
index 443ff4ae1..bf4c49fa6 100644
--- a/src/main/java/org/apache/datasketches/kll/KllDirectCompactItemsSketch.java
+++ b/src/main/java/org/apache/datasketc... | 2 | 2 | 0 | [{"id": "G0", "claim": "The 'items' parameter of the new helper checkSketchesEqual is never used and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new helper's loop condition compares an int against the wider long N, so t... | null |
apache__datasketches-java__505 | apache/datasketches-java | 505 | defect | 5e7174f45557dce790681a82e085695ead21fab2 | e3403f764dc315aca621e354f784a841b1bc087c | Improve partition boundaries | This fixes a bug discovered in recent Druid testing.
Makes other improvements to the getPartionBoundaries code. | diff --git a/src/main/java/org/apache/datasketches/partitions/BoundsRule.java b/src/main/java/org/apache/datasketches/partitions/BoundsRule.java
index 68dc87bc1..ecda05e1b 100644
--- a/src/main/java/org/apache/datasketches/partitions/BoundsRule.java
+++ b/src/main/java/org/apache/datasketches/partitions/BoundsRule.java... | 2 | 2 | 0 | [{"id": "G0", "claim": "The long code block at the start of getPartitionBoundaries has no indication of what it is doing, and it would be useful to add a description of what is going on there.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The imp... | null |
apache__datasketches-java__535 | apache/datasketches-java | 535 | defect | 4a7aaa767206e666b5bfcc8c1ce85b8349c4209f | ce189132f794c88898d322443ce2f4d7d704531f | This extends the usability of the Kolmogorov-Smirnov test | from the Classic DoublesSketch to KllDoublesSketch and the KllFloatsSketch.
In order to do this I needed to add "getNormalizedRankError(boolean) to the root interface QuantilesAPI. All of the sketches (except REQ) had this anyway. In REQ I just throw an unsupported operation exception, because it makes no sense for ... | diff --git a/src/main/java/org/apache/datasketches/kll/KllSketch.java b/src/main/java/org/apache/datasketches/kll/KllSketch.java
index bbf269cb5..2d7385f6b 100644
--- a/src/main/java/org/apache/datasketches/kll/KllSketch.java
+++ b/src/main/java/org/apache/datasketches/kll/KllSketch.java
@@ -193,15 +193,7 @@ public sta... | 3 | 3 | 2 | [{"id": "G0", "claim": "The test helper println declares a parameter 's' that is never used.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The tolerance used for the disjoint-distribution tests (one normalized-rank error) is much too large for ... | null |
apache__datasketches-java__539 | apache/datasketches-java | 539 | defect | a07771921c85d68aff084bffd38f56090d1b1691 | 611a9be8e603f831cdaa9fb8ae7d0036b2ac3aea | Vectorized kll updates | The primary focus of this PR is to add vectorized updates to the KLL Doubles Sketches.
The changes and rationale by class is as follows:
KllDirectDoublesSketch
- Grouped all the Min/Max methods together to make them easier to understand as they are closely related.
- Added get Max/Min Internal methods. This... | diff --git a/src/main/java/org/apache/datasketches/kll/KllDirectCompactItemsSketch.java b/src/main/java/org/apache/datasketches/kll/KllDirectCompactItemsSketch.java
index bf4c49fa6..3e493a7f0 100644
--- a/src/main/java/org/apache/datasketches/kll/KllDirectCompactItemsSketch.java
+++ b/src/main/java/org/apache/datasketc... | 4 | 4 | 1 | [{"id": "G0", "claim": "The Javadoc on updateMinMax() carries a spurious @param tag \"offset\" that does not match any actual parameter of the method.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new vector update paths do not invalidate the... | null |
apache__datasketches-java__547 | apache/datasketches-java | 547 | defect | 30fa37e9de37ddb20564dff43309c88e008b6e8b | 54396e0ea79bea29e76c781cb6f07ecd7a7dd4e6 | Implemented Inclusion of min/max for Floats, Doubles and Items Sorted Views. | Also fixed a problem I discovered in the deserialization for Boolean quantiles, but it would also have shown up with other types. The data was ok, but the max value would have been incorrect.
Also fixed some problems with some of the tests.
Along the way I also replaced "back-slash-n" with platform independent "L... | diff --git a/src/main/java/org/apache/datasketches/kll/KllDirectCompactItemsSketch.java b/src/main/java/org/apache/datasketches/kll/KllDirectCompactItemsSketch.java
index 3e493a7f0..05324d28f 100644
--- a/src/main/java/org/apache/datasketches/kll/KllDirectCompactItemsSketch.java
+++ b/src/main/java/org/apache/datasketc... | 7 | 5 | 1 | [{"id": "G0", "claim": "The reviewer asks why populateFromSketch now sizes myLevels from srcLevelsArr.length instead of srcNumLevels+1 as before, while trusting it is fine either way.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Special constr... | null |
apache__datasketches-java__559 | apache/datasketches-java | 559 | defect | 923b30f1741c478dd843d3b00da121061f520799 | 980c132d3aa0caf36cdda0c6e750ca466b2b2d8b | Added new method | Added new method to compute absolute maximum number of storage bytes required for a CompactSketch given the configured number of nominal entries (power of 2).
The other method of a similar name really didn't need to be public, but it is used extensively in test.
Making it package-private now would force a major rel... | diff --git a/src/main/java/org/apache/datasketches/theta/Sketch.java b/src/main/java/org/apache/datasketches/theta/Sketch.java
index 888116512..b949169c0 100644
--- a/src/main/java/org/apache/datasketches/theta/Sketch.java
+++ b/src/main/java/org/apache/datasketches/theta/Sketch.java
@@ -297,13 +297,27 @@ public double... | 2 | 1 | 0 | [{"id": "G0", "claim": "getCompactSketchMaxBytes should reuse the existing hash-table-threshold logic (getHashTableThreshold) instead of leaving the knowledge of 2 * K * rebuild_threshold sitting in two places.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
apache__datasketches-java__673 | apache/datasketches-java | 673 | defect | 5aa035cd1570c63febdbffe6dabdba1de09f492d | 72784b5093e661098632b80bb2e212885fd284ad | FFM Phase 5: sketches: req, tdigest | ## Pull Request Overview
This PR continues migrating various packages to the Java FFM API by replacing the legacy Memory/WritableMemory usage with MemorySegment and PositionalSegment. It updates both implementation and test code across multiple modules to use the new API.
### Sketch Families and helper classes move... | diff --git a/src/main/java/org/apache/datasketches/common/SpecialValueLayouts.java b/src/main/java/org/apache/datasketches/common/SpecialValueLayouts.java
new file mode 100644
index 000000000..292d5617f
--- /dev/null
+++ b/src/main/java/org/apache/datasketches/common/SpecialValueLayouts.java
@@ -0,0 +1,114 @@
+/*
+ * L... | 2 | 1 | 0 | [{"id": "G0", "claim": "The final fallback return in getQuantile passes centroidWeights_[numCentroids_ - 1] as the first argument to weightedAverage where the last centroid mean (centroidMeans_) is meant, which will produce incorrect quantile values.", "category": "correctness", "verdict": "supported", "priority": "P0"... | null |
apache__datasketches-java__682 | apache/datasketches-java | 682 | defect | 9ad6c073875d71c55c290c95bef7879ca668a14d | 8841d5afcd48c34bc20ef82159ce2818f110e75d | Fix get result and reset | This fixes the "getResultAndReset" issue flagged by Copilot, but does it the right way :) | diff --git a/src/main/java/org/apache/datasketches/quantiles/DirectUpdateDoublesSketch.java b/src/main/java/org/apache/datasketches/quantiles/DirectUpdateDoublesSketch.java
index 716638da7..fdbbf4602 100644
--- a/src/main/java/org/apache/datasketches/quantiles/DirectUpdateDoublesSketch.java
+++ b/src/main/java/org/apac... | 3 | 2 | 0 | [{"id": "G0", "claim": "Remove the //TODO comment from getResultAndReset() in ItemsUnion.java, as the implementation appears complete and functional.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The exception message thrown by putBitPattern() ... | null |
apache__datasketches-java__684 | apache/datasketches-java | 684 | defect | b2aa63cfe4b32b199666a4f0df9a6f49061a43f4 | 8044090a2869696933912a88d0b9c1eaea1f9300 | Cleanup phase2 | # NOTES
The main repo is being targeted for the upcoming Java 25 LTS release, which is due out next month (Sep). Currently, however, this code is only being compiled under Java 24 in order to get work done. I do not anticipate any changes being required in the move to Java 25.
The big change from the previous re... | diff --git a/.github/workflows/auto-jdk-matrix.yml b/.github/workflows/auto-jdk-matrix.yml
index a556d3e82..f5ba78463 100644
--- a/.github/workflows/auto-jdk-matrix.yml
+++ b/.github/workflows/auto-jdk-matrix.yml
@@ -1,12 +1,12 @@
name: Auto JDK Matrix Test & Install
on:
-# push:
-# branches: [ 'main', '[0-9]+.... | 6 | 3 | 0 | [{"id": "G0", "claim": "The CI matrix should test the newly available Java 25 (25-ea / RC) instead of staying on Java 24.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The javadoc workflow should reference the deploy action by a version tag like ... | null |
apache__datasketches-java__705 | apache/datasketches-java | 705 | defect | cac0ef7806c7a4becd4e1bd50e8104b1f0fb7ba8 | 6bda431723cf40b87ad640e40579f50f54a5a2d8 | Fix ArrayOfStringsSummary and add .mvn to root. | See issue #699. Minor fix to /tuple/strings/ArrayOfStringsSummary. Also added corresponding test: _/tuple/strings/ArrayOfStringsSummary_Issue699_.
Added .mvn/maven.config to root and added ".mvn/" to .gitignore.
| diff --git a/.gitignore b/.gitignore
index f03c5078f..f0a5c0998 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,6 +15,7 @@
# Additional tools
.clover/
+.mvn/
# OSX files
**/.DS_Store
diff --git a/src/main/java/org/apache/datasketches/tuple/strings/ArrayOfStringsSummary.java b/src/main/java/org/apache/datasketch... | 3 | 1 | 0 | [{"id": "G0", "claim": "Invoking the deprecated QuickSelectSketch.toByteArray() in this test should be avoided.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local variable 'ArrayOfStringsSummary aoss2' in checkCopy() is never read.", "catego... | null |
apache__directory-scimple__16 | apache/directory-scimple | 16 | defect | 72696bad267ac1cba1f210c35075e5f0d890bcad | 0ba55643fe5342ccb49fffaf8f811f80fe2f99c7 | Making SelfIdResolver optional | This is object is not used in required for basic usage
(trying to simplify the code needed for examples) | diff --git a/scim-server/scim-server-common/src/main/java/org/apache/directory/scim/server/rest/SelfResourceImpl.java b/scim-server/scim-server-common/src/main/java/org/apache/directory/scim/server/rest/SelfResourceImpl.java
index 140544787..eaad05c2c 100644
--- a/scim-server/scim-server-common/src/main/java/org/apache... | 2 | 2 | 1 | [{"id": "G0", "claim": "The /Users/Me end-point should return an HTTP status code of 501 Not Implemented when the SelfIdResolver Instance is null.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The injected fields should be left with default (packag... | null |
apache__directory-scimple__492 | apache/directory-scimple | 492 | defect | 2b7b935198f21395f2228b641104eb306045830a | d629e701ea0aa2fc6a1952551e29231c57222403 | Remove colons from test schema file name | - Colons are not accepted in file names on Windows causing error when checking out this project. The change replaces the colons with underscores in test resource file names.
- Updated affected test
Fixes: #491 | diff --git a/scim-spec/scim-spec-schema/src/test/java/org/apache/directory/scim/spec/schema/SchemaTest.java b/scim-spec/scim-spec-schema/src/test/java/org/apache/directory/scim/spec/schema/SchemaTest.java
index 24c59f696..668c9b249 100644
--- a/scim-spec/scim-spec-schema/src/test/java/org/apache/directory/scim/spec/sch... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the 'urn_ietf_params_scim_schemas_core_2.0_' prefix from the test schema file names, since the strings no longer represent URNs and could be any string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__directory-scimple__707 | apache/directory-scimple | 707 | defect | 001f9e71950937164a9c36c31385256acd5ba7f9 | 8505ac238ebff03a701cda95a0d85483f8eeb911 | Handle unicode characters in filters | - Updated ANTLR4 grammar to support unicode chars
- Added test
- Removed logic that escapes/unescapes JSON values, should is handled by at the JSON parser (jackson)
Fixes: #564
| diff --git a/scim-spec/scim-spec-schema/src/main/antlr4/imports/Json.g4 b/scim-spec/scim-spec-schema/src/main/antlr4/imports/Json.g4
index 218e76a81..ee541245e 100644
--- a/scim-spec/scim-spec-schema/src/main/antlr4/imports/Json.g4
+++ b/scim-spec/scim-spec-schema/src/main/antlr4/imports/Json.g4
@@ -34,8 +34,13 @@ PLUS... | 1 | 1 | 0 | [{"id": "G0", "claim": "Note for posterity, even if just in this PR conversation, where `escapeJson()` is now being used, since the PR removed the escapeEcmaScript/unescapeEcmaScript workaround.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__directory-scimple__726 | apache/directory-scimple | 726 | defect | a639001459695e822a39466037d96e653e321cc5 | fb2ee7ba0acc6edeed59b6c52775dd973ec49c95 | Fixed issue with PATCH incorrectly replacing entire complex attr | Fix for: https://github.com/apache/directory-scimple/issues/725 | diff --git a/scim-core/src/main/java/org/apache/directory/scim/core/repository/DefaultPatchHandler.java b/scim-core/src/main/java/org/apache/directory/scim/core/repository/DefaultPatchHandler.java
index aa15875b1..659b12c6e 100644
--- a/scim-core/src/main/java/org/apache/directory/scim/core/repository/DefaultPatchHandl... | 2 | 1 | 0 | [{"id": "G0", "claim": "A PATCH replace on a complex attribute nested within another complex attribute (e.g. replacing \"name\" via the no-path form) may still replace the entire complex attribute instead of merging only the given sub-attributes; the author will write a test to see.", "category": "correctness", "verdic... | null |
apache__directory-scimple__894 | apache/directory-scimple | 894 | defect | 880a0c919343dd6213d4b3cccd58a7b2c1554b81 | 0d78eb84a504fbb4621e703890e254a1bd873424 | fix "displayName" and some other attributes in "attributes" / "excludedAttributes" not working in GET /Groups | Resolves #887
Now the core schema resolved from resource type will be passed to findAttribute. | diff --git a/scim-server/src/main/java/org/apache/directory/scim/server/rest/AttributeUtil.java b/scim-server/src/main/java/org/apache/directory/scim/server/rest/AttributeUtil.java
index 83b4ec60a..0f904c944 100644
--- a/scim-server/src/main/java/org/apache/directory/scim/server/rest/AttributeUtil.java
+++ b/scim-serve... | 1 | 1 | 0 | [{"id": "G0", "claim": "The whitespace-only changes in the unit test should be reverted (or moved to a separate commit in this PR), because tying them to the functional change makes the history hard to track.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__dolphinscheduler__10284 | apache/dolphinscheduler | 10,284 | defect | 62bd9d2c4c0ee110687d1454a34209a77f175d94 | 8e372fad3fbb095d41173662e5380925d5cb3f59 | [Fix] Fix the JSONUtils tool class time zone problem #10282 | <!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
Fixed #10282
## Brief change log
Add static method `setTimeZone(TimeZone timeZo... | diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/JSONUtils.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/JSONUtils.java
index dbd7d833b52c9..33d8388e062f1 100644
--- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/com... | 3 | 2 | 1 | [{"id": "G0", "claim": "The issue was already fixed by #10345, so this pull request may no longer be needed.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the log statement in setTimeZone if it is not needed.", "category": "maintainability", "verdi... | null |
apache__dolphinscheduler__10364 | apache/dolphinscheduler | 10,364 | defect | a6fc70cdd111a52a1342ff78953f5c3948e8add1 | 96a087ab0af481585a4755246628e3309c6a1eb5 | Add JDK11 on unit-test | ## Purpose of the pull request
Add jdk11 on UT step.
## Brief change log
| diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index d86837f6df352..51b907563cdfa 100644
--- a/.github/workflows/backend.yml
+++ b/.github/workflows/backend.yml
@@ -56,6 +56,9 @@ jobs:
needs: paths-filter
if: ${{ (needs.paths-filter.outputs.not-ignore == 'true') || (github.event_na... | 2 | 1 | 1 | [{"id": "G0", "claim": "Add an `if` condition to the Download Binary Package step in the cluster-test job, otherwise the job will be run twice on jdk 8.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add `setup-java` to the backend build job, otherwis... | null |
apache__dolphinscheduler__10376 | apache/dolphinscheduler | 10,376 | defect | b1fb17119b7e929792933040e26c5013313a43f7 | 05b070df515c3bdb9f7280aa98c19519f8668df1 | [Improve] Enhance complement function transformation | close #10370 | diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
index 1b1bbbe463e7..f60882bd5c7b 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
+++ ... | 11 | 9 | 1 | [{"id": "G0", "claim": "The new complement schedule date command parameter should be a list string (its constant name/value should say 'list').", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should not use wildcard imports (java.util.* a... | null |
apache__dolphinscheduler__10451 | apache/dolphinscheduler | 10,451 | defect | 50846760e5ab5f68cb708edc72725b235e933a34 | ffc68d39fa6089030895af8dd541b968c9640343 | [Improve] Add LDAP user not exsitst action config | <!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
When you log in with LDAP and are not a ds user, it will create a new user automatedl... | diff --git a/docs/docs/en/architecture/configuration.md b/docs/docs/en/architecture/configuration.md
index eb97e8fa6013..8237d9158bd0 100644
--- a/docs/docs/en/architecture/configuration.md
+++ b/docs/docs/en/architecture/configuration.md
@@ -226,6 +226,7 @@ security.authentication.ldap.username|cn=read-only-admin,dc=e... | 5 | 4 | 0 | [{"id": "G0", "claim": "Use `CREATE` instead of `CREATION` for the new config value, to stay consistent with `DENY` (which is used rather than `DENIAL`).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a line to the docs explaining the `DENY` option."... | null |
apache__dolphinscheduler__11033 | apache/dolphinscheduler | 11,033 | defect | 6bf80f7a06727731685f095f95b811fc2c902076 | d7f31509547f368ae9450fb5a341322403b4db9f | [fix-10961][alert server]Change the content of alert to an array | Change the content of alert to an array
close: #10961 | diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertSenderService.java b/dolphinscheduler-alert/dolphinscheduler-alert-server/src/main/java/org/apache/dolphinscheduler/alert/AlertSenderService.java
index ad92862ba9e7..2817606e6c99 100644
--- a/dolphinsc... | 3 | 3 | 3 | [{"id": "G0", "claim": "The check on the alert content should use `jsonNodes instanceof JSONArray` rather than the startsWith(\"[\")/endsWith(\"]\") string check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Please add another test case of array t... | null |
apache__dolphinscheduler__11588 | apache/dolphinscheduler | 11,588 | defect | 0b82755796ddabceddb983b07a4dbb1108313c9b | de79b93a1a29879c45f30b5d6a941fe09798207d | [Improvement][Test] Give an example on replacing Powermock with Mockito | ## Purpose of the pull request
* Give an example on replacing `Powermock` with `Mockito`.
* Considering the workload, I'm not going to refactoring all the UTs which use `Powermock` in one PR. This is an example as the beginning work of this issue. If the example looks good, I will have two more contributors finish ... | diff --git a/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/pom.xml b/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/pom.xml
index 4ae533bcc1d6b..f0d927a2214d4 100644
--- a/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/pom.xml
+++ b/dolphinscheduler-task-plugin/dolphinscheduler-t... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new mockito test dependencies would be better placed outside the task-plugin than in the dolphinscheduler-task-zeppelin module's own pom.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "It is questioned whether cancelling the s... | null |
apache__dolphinscheduler__11614 | apache/dolphinscheduler | 11,614 | defect | abfef1a929b0b28f2e5bce4f52a571fe33a6fe86 | df20c9cbb62837647f7addcc25443885dcf77471 | [Improvement-#11613] Add spi priority factory | <!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
close #11613
## Brief change log
<!--*(for example:)*
- *Add maven-checkstyl... | diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-api/src/main/java/org/apache/dolphinscheduler/alert/api/AlertChannelFactory.java b/dolphinscheduler-alert/dolphinscheduler-alert-api/src/main/java/org/apache/dolphinscheduler/alert/api/AlertChannelFactory.java
index 2fa328e213e7e..b8d1b094b51d7 100644
--- a/dol... | 11 | 10 | 2 | [{"id": "G0", "claim": "The accessor getSpiMap should be renamed to getSPIMap.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The SPI should support only the LOAD_HIGH_PRIORITY conflict strategy and throw an exception when two plugins have the s... | null |
apache__dolphinscheduler__11774 | apache/dolphinscheduler | 11,774 | defect | c76301ab51735a79d6bfd3c00288ce7d5fe60e54 | cf0f16b2b6d88cb90a4d38c73b51052cbf8ff268 | [fix-#11753] send alert error alert data id | ## Purpose of the pull request
send alert error alert data id
## Brief change log
ATT
## Verify this pull request
This pull request is code cleanup without any test coverage.
this close #11753
| diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ExecutorController.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ExecutorController.java
index bd17449940b1..431c6a1b3ac0 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinsc... | 2 | 1 | 1 | [{"id": "G0", "claim": "The batch-start-process-instance endpoint's warningGroupId parameter also needs to be changed from int to Integer, as was done for start-process-instance.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The front-end file use-... | null |
apache__dolphinscheduler__12152 | apache/dolphinscheduler | 12,152 | defect | b95db4413044e48f97a6e8cf15c5d7667ddf5619 | ecc4bc1c03ed2fa9237877cf7b744d97c3f8447d | [DS-12131][master] Optimize the log printing of the master module acc… | <!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
This pull request optimizes some log printing of the master module.
<!--(For example: ... | diff --git a/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/consumer/TaskPriorityQueueConsumer.java b/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/consumer/TaskPriorityQueueConsumer.java
index 7bff4e9d214ba..f073fd55f3dcf 100644
--- a/dolphinscheduler-... | 2 | 2 | 1 | [{"id": "G0", "claim": "The catch block in CommonTaskProcessor.dispatchTask logs the task-submit failure at info level; it should be logged at error level, as the attached suggestion proposes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new '... | null |
apache__dolphinscheduler__12153 | apache/dolphinscheduler | 12,153 | defect | cc82206c33cc60cd71ebfe7b327e8cc4110bd15d | adb06f21c651fa0343d33b70fb489e9eadc3aeb9 | [Improvement][Test] Remove Powermock in dolphinscheduler-task-plugin | <!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
<!--(For example: This pull request adds checkstyle plugin).-->
## Brief change log
... | diff --git a/dolphinscheduler-task-plugin/dolphinscheduler-task-dvc/src/test/java/org/apache/dolphinscheduler/plugin/task/dvc/DvcTaskTest.java b/dolphinscheduler-task-plugin/dolphinscheduler-task-dvc/src/test/java/org/apache/dolphinscheduler/plugin/task/dvc/DvcTaskTest.java
index ec483d86fbd35..fd6b026648b7a 100644
---... | 2 | 2 | 1 | [{"id": "G0", "claim": "The local variable 'ListPipelineExecutionStepsResult listPipelineExecutionStepsResult' in SagemakerTaskTest is never read.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unit tests report errors coming from EmrAddStep... | null |
apache__dolphinscheduler__12217 | apache/dolphinscheduler | 12,217 | defect | 1a4d7a842663574752bcabc222d2d0d778089fb7 | 79aa27cb066de5f277c7c2d46eef8c77651e780f | [Improvement][WorkerGroup]Remove workerGroup in registry | ## Purpose of the pull request
close #12157
## Brief change log
- Remove workerGroup in worker 's registry path.
- When Master refresh workerGroup mapping, it will directly use the mapping in db.
## Verify this pull request
<!--*(Please pick either of the following options)*-->
This pull request is ... | diff --git a/docs/docs/en/architecture/configuration.md b/docs/docs/en/architecture/configuration.md
index 45d73412777a8..1a257dc92e158 100644
--- a/docs/docs/en/architecture/configuration.md
+++ b/docs/docs/en/architecture/configuration.md
@@ -291,7 +291,6 @@ Location: `worker-server/conf/application.yaml`
|worker.te... | 3 | 1 | 0 | [{"id": "G0", "claim": "The added `Assertions.assertTrue(true)` in testStart is meaningless and should be removed or justified.", "category": "testing", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The empty `before()` setUp method left behind in WorkerRegistryClientTest shou... | null |
apache__dolphinscheduler__12495 | apache/dolphinscheduler | 12,495 | defect | b936b882bb05a6058a90b6f5f271793b9ac70aaa | c1579d53c3797abbd1985e1ea821933e4c9152fc | [fix#12439] [Alert] fix send script alert NPE |
## Purpose of the pull request
this pr is used to close #12439
## Brief change log
## Verify this pull request
Added method testUserParamsNPE of ScriptSenderTest to verify the change
Added method testPathNPE of ScriptSenderTest to verify the change
Added method testTypeIsError of ScriptSenderTest to v... | diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-script/src/main/java/org/apache/dolphinscheduler/plugin/alert/script/ScriptAlertChannel.java b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-script/src/main/java/org/apache/dolphinscheduler/plugin/al... | 1 | 1 | 1 | [{"id": "G0", "claim": "The files this pull request changed violate the spotless format check (import order in ScriptAlertChannel.java and ScriptSender.java, over-long ternary lines and a missing space after // in ScriptSender.java), so the Maven build's spotless:check fails; please fix the format violations.", "catego... | null |
apache__dolphinscheduler__12534 | apache/dolphinscheduler | 12,534 | defect | 138eab6eb3003ef1c3dbaf25528c9050ca5c2ffc | 34759ff79d618472e5053fb4c22b8b8434f6ccc6 | [Bug] [API] Before deleting a worker group, check whether there is environment that reference the worker group. |
## Purpose of the pull request
close #12490
## Brief change log
Before deleting a worker group, check whether there is environment that reference the worker group.
## Verify this pull request
1.create worker group
2.create environment ,choose worker group
3.delete worker group | diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
index b129c9f90fc8..0b816d879c3d 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
+++ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new DELETE_WORKER_GROUP_BY_ID_FAIL_ENV error message should show which environments use the worker group, not only how many.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The delete-failure message should pass the comma-joine... | null |
apache__dolphinscheduler__12722 | apache/dolphinscheduler | 12,722 | defect | 2c3cc31a4ce43b3b03b42530d41e21785796ab30 | f75ee3ce495e586e54e2ec5ddf65b92cf6af1be0 | [fix-12721] Fix cannot modify the upstream task in task definition page. | resolve taskDefinitionServiceImpl code logistic conflict
closes: #13066
| diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/TaskDefinitionServiceImpl.java
index 1dbc91ad91d3..0485e2f87731 100644
--- a/dolphinscheduler-api/src/main/java/or... | 2 | 2 | 0 | [{"id": "G0", "claim": "The updateTaskWithUpstream method is difficult to understand and is missing comments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G3", "claim": "The condition should read MapUtils.isNotEmpty(queryUpStreamTaskCodeMap) instead of que... | null |
apache__dolphinscheduler__13057 | apache/dolphinscheduler | 13,057 | defect | 2792c45fb002c8db4ec313387855f3bd6fed860c | 7252bf776e87d4bd58bdd29afab1b41ccbcf00be | [improve-#13053] in method of ``` execProcessInstance``` check ```startNodeList``` |
## Purpose of the pull request
in method of ``` execProcessInstance``` check ```startNodeList```
## Brief change log
- #13053
## Verify this pull request
This pull request is code cleanup without any test coverage.
this close :# 13053
| diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
index 6e6b8fb072e2..26082e069cac 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
+++ ... | 3 | 1 | 0 | [{"id": "G0", "claim": "Long.valueOf(startNode) inside checkStartNodeList may throw an uncaught java.lang.NumberFormatException when startNodeList contains a non-numeric entry.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Radeity wonders whether t... | null |
apache__dolphinscheduler__13094 | apache/dolphinscheduler | 13,094 | defect | fed1e85fb833bf5dec9de36b5a539885c2da1ee3 | 385c07e0f709b5f14d5359c3a09951f926f494f5 | [Fix] openapi version inconsistency when updating workflows, tasks and relationship | Fix the version inconsistency when updating workflows, tasks and relationships in openapi. | diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProcessTaskRelationV2Controller.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ProcessTaskRelationV2Controller.java
index 843065122073..676b339f0bb9 100644
--- a/dolphinscheduler-api/src/main... | 18 | 17 | 0 | [{"id": "G0", "claim": "Instead of adding a needSyncDag boolean parameter to updateUpstreamTaskDefinition, it is better to create a new method such as updateUpstreamTaskDefinitionWithSyncDag.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In updateSingle... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.