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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Apicurio__apicurio-registry__7583 | Apicurio/apicurio-registry | 7,583 | defect | 1d293e2e709cf64879c12f28476cbedd5f1ec739 | 5c947b18318c62cba420b7fa9b51f6b9fa2669e4 | fix: make SQL repository instances per-storage instead of shared CDI singletons | ## Summary
- Convert all 15 `Sql*Repository` classes from `@ApplicationScoped` CDI singletons to plain classes, each instantiated per storage instance
- Each storage (blue, green, default) now gets its own independent set of repositories bound to its own `HandleFactory` at construction time
- Remove `ensureConfigured(... | diff --git a/app/src/main/java/io/apicurio/registry/storage/impl/sql/AbstractSqlRegistryStorage.java b/app/src/main/java/io/apicurio/registry/storage/impl/sql/AbstractSqlRegistryStorage.java
index bc45dd2f09d..294d25830c2 100644
--- a/app/src/main/java/io/apicurio/registry/storage/impl/sql/AbstractSqlRegistryStorage.ja... | 2 | 1 | 0 | [{"id": "G0", "claim": "Make the H2 sequence counters in SqlSequenceRepository instance-scoped (or keyed by datasource/HandleFactory) instead of static, because with blue/green polling storages using separate H2 databases, initializing one storage can overwrite the shared counters for the other, leading to incorrect ID... | null |
Apicurio__apicurio-registry__7672 | Apicurio/apicurio-registry | 7,672 | defect | 06b9df55de4721aa1158feb23a32a3b45c3307a0 | bafb4acf6e586f5bc001314785c1eb3db0f816fc | refactor(test): simplify integration test group profiles (#7628) | ## Summary
- Replace Maven profiles for test group selection (`-Psmoke`, `-Pauth`, `-Pci`, etc.) with direct `-Dgroups` property usage
- Remove `skipTests=true` default and redundant `skipTests=false` overrides from integration-tests pom.xml — tests are already gated by the `integration-tests` profile
- Set default gro... | diff --git a/.claude/rules/code-style.md b/.claude/rules/code-style.md
index d80b4903c1f..258bc0fdbe6 100644
--- a/.claude/rules/code-style.md
+++ b/.claude/rules/code-style.md
@@ -20,4 +20,3 @@ paths:
- Cyclomatic complexity limit: 19
- Use Lombok (`@Data`, `@Getter`, `@Builder`) only where the module already uses i... | 3 | 2 | 1 | [{"id": "G0", "claim": "The README example combining groups with a tag expression (e.g. -Dgroups=\"smoke | auth\") will not trigger infra selection such as the secured/Keycloak deployment path in cluster/remote runs, because the deployment logic (as the reviewer understood it) keys off exact single-group equality, so t... | null |
Apicurio__apicurio-registry__7676 | Apicurio/apicurio-registry | 7,676 | defect | ad5af967c03605f9528f6a369a949e2c820f2fd6 | 68bf83175519ce9c06b96a1d8c2c8e10b4e3778f | Add artifact version management commands to the CLI. Fixes #7167 | ## Summary
... | diff --git a/cli/src/main/java/io/apicurio/registry/cli/ContextCommand.java b/cli/src/main/java/io/apicurio/registry/cli/ContextCommand.java
index cff74872fa1..35ee3af81a9 100644
--- a/cli/src/main/java/io/apicurio/registry/cli/ContextCommand.java
+++ b/cli/src/main/java/io/apicurio/registry/cli/ContextCommand.java
@@ ... | 8 | 6 | 3 | [{"id": "G0", "claim": "The test should not use a hard-coded \"/dev/null\" path for the required --file argument because it is non-portable (e.g. Windows) and fragile if validation order changes; prefer a temp file.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
Apicurio__apicurio-registry__7685 | Apicurio/apicurio-registry | 7,685 | defect | 1a1919f2cbbe0cc491f09417cccc86fe5d844697 | 7c4656d85fe5e8c0bc213a4f9a178f0ce98cbc7e | fix(references): eliminate duplicate recursive calls and add GAV deduplication in resolveReferences | ## Summary
- Fixed duplicate recursive call in `AbstractSchemaResolver.resolveReferences()` where
`resolveReferences(referenceReferences)` was called twice per iteration — the second call now
reuses the already-computed `nestedReferences` variable, preventing exponential API calls with
reference depth.
- Added a ... | diff --git a/schema-resolver/src/main/java/io/apicurio/registry/resolver/AbstractSchemaResolver.java b/schema-resolver/src/main/java/io/apicurio/registry/resolver/AbstractSchemaResolver.java
index b7c809ec827..32a04279a97 100644
--- a/schema-resolver/src/main/java/io/apicurio/registry/resolver/AbstractSchemaResolver.ja... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new local gavCache is created fresh per resolution call, so the same schema referenced across separate resolution invocations is still fetched from the registry redundantly; the reviewer asks whether the author would be open to a follow-up that leverages the ERCache/schemaCache for cross-inv... | null |
Apicurio__apicurio-registry__7732 | Apicurio/apicurio-registry | 7,732 | defect | 3474383b41db8b7203a1b2f8ef24cffc71416757 | bbf52027f9858a0d7253930a6f1e9958b362b1b3 | support running maven `register` goal directly from the command line | support running maven `register` goal directly from the command line without a Maven project | diff --git a/docs/modules/ROOT/pages/getting-started/assembly-managing-registry-artifacts-maven.adoc b/docs/modules/ROOT/pages/getting-started/assembly-managing-registry-artifacts-maven.adoc
index f988cae3277..e9957689265 100644
--- a/docs/modules/ROOT/pages/getting-started/assembly-managing-registry-artifacts-maven.ad... | 4 | 1 | 0 | [{"id": "G0", "claim": "loadArtifactsFromSystemPropertiesIfNeeded() mutates this.artifacts, which is unexpected inside a method called validate(); add a brief comment noting the mutation is intentional setup before validation.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduc... | null |
Apicurio__apicurio-registry__7741 | Apicurio/apicurio-registry | 7,741 | defect | 68be9234006c4b739cbe3e5103ec38c82a59a81e | fe45f87bc7e0f2b6bfcdb8bff5bb6f5211dd50c9 | Add global rules management commands to the CLI. Fixes #7168 | ## Summary
Add global rules management commands to the Apicurio Registry CLI. Supports create, list, get, update, and delete operations for global rules (VALIDITY, COMPATIBILITY, INTEGRITY) with client-side validation, JSON/table output, and delete-all support.
## Changes
- Add `globalrule` sub-package with create, ... | diff --git a/.github/workflows/verify-build.yaml b/.github/workflows/verify-build.yaml
index c845f6f39bd..2a4bb6ad684 100644
--- a/.github/workflows/verify-build.yaml
+++ b/.github/workflows/verify-build.yaml
@@ -78,6 +78,7 @@ jobs:
java-sdk/client-v2/target/
config-index/definitions/target/
... | 5 | 4 | 2 | [{"id": "G0", "claim": "Global rule listing does not handle ProblemDetails from the REST client, so a server error (auth/404/5xx) bubbles up as an unhandled exception treated as a generic \"Unexpected error\" with no user-friendly message; wrap the client call in a try/catch and emit a consistent error message plus exi... | null |
Apicurio__apicurio-registry__7770 | Apicurio/apicurio-registry | 7,770 | defect | d6e4f857236ffdcafdd13d39e7bcd940f591b93c | fc2b5b4fe33a913717f3e03fe28bf1a856f1f78c | Add group rules management commands to the CLI. Fixes #7170 | ## Summary
Add group rules management commands to the Apicurio Registry CLI. Supports create, list, get, update, and delete operations for group-specific rules (VALIDITY, COMPATIBILITY, INTEGRITY) with client-side validation, JSON/table output, context-based group ID resolution, and default group rejection.
## Change... | diff --git a/cli/src/main/java/io/apicurio/registry/cli/common/RuleUtil.java b/cli/src/main/java/io/apicurio/registry/cli/common/RuleUtil.java
index 0b470107c79..8c51da119d5 100644
--- a/cli/src/main/java/io/apicurio/registry/cli/common/RuleUtil.java
+++ b/cli/src/main/java/io/apicurio/registry/cli/common/RuleUtil.java... | 1 | 1 | 0 | [{"id": "G0", "claim": "RuleUtil.printRuleTypes uses `Mapper.MAPPER` while `printRule` uses the statically imported `MAPPER`; mixing both patterns in the same utility makes the code harder to scan and maintain, so standardize on one (e.g., always use the static `MAPPER`) and drop the now-unnecessary import for consiste... | null |
Apicurio__apicurio-registry__7781 | Apicurio/apicurio-registry | 7,781 | defect | bc4758e87b9b493fdcb2337798e942f65b59085b | e909b00a5baa057d3b9ffa86af6fe23cc97c049d | Add artifact rules management commands to the CLI. Fixes #7169 | ## Summary
Add artifact rules management commands to the Apicurio Registry CLI. Supports create, list, get, update, and delete operations for artifact-specific rules (VALIDITY, COMPATIBILITY, INTEGRITY) with client-side validation, JSON/table output, and context-based group/artifact ID resolution.
## Changes
- Add `... | diff --git a/cli/src/main/java/io/apicurio/registry/cli/artifact/ArtifactCommand.java b/cli/src/main/java/io/apicurio/registry/cli/artifact/ArtifactCommand.java
index 12e8edf0804..1a487115c5c 100644
--- a/cli/src/main/java/io/apicurio/registry/cli/artifact/ArtifactCommand.java
+++ b/cli/src/main/java/io/apicurio/regist... | 2 | 1 | 0 | [{"id": "G0", "claim": "VersionUtil is now used outside the version commands while its package, name and class-level Javadoc still present it as version-specific, so it should be moved to a neutral shared location (e.g. cli.common) and its Javadoc/name updated to reflect the broader responsibility.", "category": "maint... | null |
ApolloFoundation__Apollo__1103 | ApolloFoundation/Apollo | 1,103 | defect | 147820f81113cd3182fbd96d585a3d0806c65474 | 55f020ef842e8f3e2c240e98ddd53ebadface287 | Feature/apl 1782 mariadb starter | Please see PR to Apollo-bom-ext for fb-process libray | diff --git a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/AplAppStatus.java b/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/AplAppStatus.java
index c75b33ef6e..1f9f2f1530 100644
--- a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/AplAppStatus.java
+++ b/apl-core... | 6 | 6 | 1 | [{"id": "G0", "claim": "The MariaDbProcess class javadoc misspells \"should\" as \"shouдd\" with a stray Cyrillic character.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "findRunning should return Optional<MariaDbProcess> instead of MariaDbProces... | null |
ApolloFoundation__Apollo__436 | ApolloFoundation/Apollo | 436 | defect | e61edb87279cb60e544f091f68c96634a0c88b85 | 65c824e2612ed1d1db3de9f085771ed973c9da89 | Feature/apl 668 update startup logic | Update node startup logic, add blockchain tests, refactor blockDaoImpl and transactionDaoImpl to clear daos, fix getBlocksAfter and getBlockIdsAfter for blockchain downloading, fix bug with getting poll results from API | diff --git a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/Blockchain.java b/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/Blockchain.java
index a1e97e7d69..53b39af8be 100644
--- a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/Blockchain.java
+++ b/apl-core/src/m... | 2 | 2 | 0 | [{"id": "G0", "claim": "The method name `getShardIntialBlock` misspells \"Initial\" and should be spelled `getShardInitialBlock`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `SET REFERENTIAL_INTEGRITY FALSE` command in deleteAll is probab... | null |
ApolloFoundation__Apollo__604 | ApolloFoundation/Apollo | 604 | defect | 7cae017bbf8dab6c649c54ac3bfa75c2c2b88035 | 0be357396798f21103b974ab200921bcc675921f | Fix/attemp optimize trim process | - some changes in trim code
- added more logs in Shuffling, logback.xml for shuffling | diff --git a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/BlockchainImpl.java b/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/BlockchainImpl.java
index 225365ffc7..5ee0e447a7 100644
--- a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/BlockchainImpl.java
+++ b/ap... | 2 | 2 | 2 | [{"id": "G0", "claim": "Do not use a PriorityBlockingQueue for trimHeights in TrimObserver, as it will cause incorrect behavior during sharding.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The transaction (dataSource.begin()) should be started ou... | null |
ApolloFoundation__Apollo__605 | ApolloFoundation/Apollo | 605 | defect | b0bb686a8a93f9680acb0a09d0c0f2e686da25bf | 8af6c1ab4bb894b8deff3c54348671cf3deb025a | added DataSource cache, data source shard iteration, unit tests | - shard Data sources are cached by cache with Eviction now | diff --git a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/BlockchainImpl.java b/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/BlockchainImpl.java
index 5ee0e447a7..8a6cecb0fb 100644
--- a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/BlockchainImpl.java
+++ b/ap... | 4 | 2 | 0 | [{"id": "G0", "claim": "Replace the hard-coded cache settings (maximumSize 6, expireAfterAccess 15 minutes) with constants explicitly declared in the class.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The literal 2L passed in testFindFullData... | null |
ApolloFoundation__Apollo__635 | ApolloFoundation/Apollo | 635 | defect | 8de5c046cb0568be3edfd36af4ce1cd184604ea2 | 10aa62f9b45e6f69dd4b747134e28c68a5c541db | Apl 833 implement unified cache service on node | Implemented unified cache subsystem. (Without visualization of cache statistics);
increased the guava version up to 28.0; | diff --git a/apl-core/pom.xml b/apl-core/pom.xml
index 6de4a8c440..8fd6b94aa0 100644
--- a/apl-core/pom.xml
+++ b/apl-core/pom.xml
@@ -165,7 +165,6 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
- <version>27.0.1-jre</version>
</... | 7 | 4 | 2 | [{"id": "G0", "claim": "Add a NULL check for the 'name' argument in the CacheConfigurator constructor.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The @CacheProducer qualifier annotation should be renamed to something like @Cache, @UnifiedCache o... | null |
ApolloFoundation__Apollo__755 | ApolloFoundation/Apollo | 755 | defect | 1984330270fc6f610d1e3d3cd427ff975eae8dd5 | 75a938005fc013c1d1a8eb832d9df8945ef9eaba | Fix/apl 1058 shard weighting | Shard weight calculation added, shard with better weight will be dowloaded. Tons and mega tons of bug fixes | diff --git a/apl-api/src/main/java/com/apollocurrency/aplwallet/api/p2p/ShardingInfo.java b/apl-api/src/main/java/com/apollocurrency/aplwallet/api/p2p/ShardingInfo.java
index a40a561444..dcf9474c33 100644
--- a/apl-api/src/main/java/com/apollocurrency/aplwallet/api/p2p/ShardingInfo.java
+++ b/apl-api/src/main/java/com/... | 5 | 2 | 2 | [{"id": "G0", "claim": "Add checks for NULL incoming parameters of the new/changed file-info, shard-info and peer-connect methods (getFileDownloadInfoFromPeer, processPeerShardingInfo, getShardingInfoFromPeer, getShardWeight, connectPeer).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ... | null |
ApolloFoundation__Apollo__761 | ApolloFoundation/Apollo | 761 | defect | d186260198998ba5719cbf9c4975b76611ec8943 | aab483fbdd5018868c7b633c0bd9eb2c55e5baf4 | Feature/apl 1094 sync prunable archive update on time | - the update of the prunable archive doesn't depend on the trim event, the added monitor updates it at a fixed rate;
- renamed TaskDispacher methods to avoid confusion; | diff --git a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/addons/AfterStart.java b/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/addons/AfterStart.java
index 97654037f8..5270b080df 100644
--- a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/addons/AfterStart.java
+++ b/apl-c... | 3 | 3 | 0 | [{"id": "G0", "claim": "The ReentrantLock guarding the hash recalculation in PrunableArchiveMonitor is useless and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The injected fields of PrunableArchiveMonitor should be declared final.",... | null |
ApolloFoundation__Apollo__849 | ApolloFoundation/Apollo | 849 | defect | f5f7491ca68903e289798d6c8443c73b49295f6f | a3f1ae775b3226dc9192e5711df28671f36a76b8 | Fix/apl 1206 genesis import recovery | - added storing flag for recover info and using it on incomplete genesis import | diff --git a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/BlockchainImpl.java b/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/BlockchainImpl.java
index 45ed3eb953..a748c31d3f 100644
--- a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/app/BlockchainImpl.java
+++ b/ap... | 2 | 2 | 2 | [{"id": "G0", "claim": "AccountTable should also be injected into GenesisImporter and truncated by cleanUpGenesisData, since account data is also mandatory for cleanup of an incomplete genesis import.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "I... | null |
ApolloFoundation__Apollo__913 | ApolloFoundation/Apollo | 913 | defect | a0f4a06886327ee3e811f19ff3ab51f798579aed | 85febccbe9e6f8621c3d64ebca2ab87e1f6c6f35 | Feature/apl 1357 apollo x509 | Better Apollo X.509 certificate processing without configurable classification. FB-crypto-public version 1.2.9 | diff --git a/apl-utils/src/main/java/com/apollocurrency/aplwallet/apl/util/cert/ActorType.java b/apl-utils/src/main/java/com/apollocurrency/aplwallet/apl/util/cert/ActorType.java
index b4cdd595c9..fb59b7c860 100644
--- a/apl-utils/src/main/java/com/apollocurrency/aplwallet/apl/util/cert/ActorType.java
+++ b/apl-utils/s... | 6 | 5 | 4 | [{"id": "G0", "claim": "In ApolloCertificateTest.setUpClass the InputStream from getResourceAsStream(\"test_cert.pem\") is used as a closeable resource and looks like it is not closed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The FileInputStre... | null |
ApolloFoundation__Apollo__970 | ApolloFoundation/Apollo | 970 | defect | 2e7c5ef789ae13a1cf78ee0b1b70c0f0699b8dd6 | 245730abc346531f1def9ed03288cbe555ea164d | Feature/apl 1545 asset transfer component refactoring | Refactored 'asset_transfer' component, added :
- entity
- dao
- service
- unit test data
- unit tests | diff --git a/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/dao/state/asset/AssetTransferTable.java b/apl-core/src/main/java/com/apollocurrency/aplwallet/apl/core/dao/state/asset/AssetTransferTable.java
new file mode 100644
index 0000000000..534243e14e
--- /dev/null
+++ b/apl-core/src/main/java/com/apollo... | 1 | 1 | 0 | [{"id": "G0", "claim": "A comment should be added at the json.put line explaining why the ATM quantity is stored in the 'quantityATU' JSON field, to avoid future misunderstanding.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
AppFlowy-IO__AppFlowy-Cloud__1119 | AppFlowy-IO/AppFlowy-Cloud | 1,119 | defect | b94d1c60b34c2eb3ffde410cc947d59501601f8f | 9054ddd46ddf8a07d3d2a9081e9dd4387d3b9b62 | Document paragraphs | TODOs:
- [x] 1. Split documents by paragraphs, not arbitrary length (see: https://github.com/AppFlowy-IO/AppFlowy-Collab/pull/361)
- [x] 2. Create `af_collab_embeddings.fragment_id` using a consistent hash of chunk it relates to.
- [ ] 3. At the beginning of indexing, get collab content with list of its currently ... | diff --git a/.sqlx/query-58427b8e9c1a19ed3419c30f808ada7d0a0adc495a2b305786f996a2ba78bc30.json b/.sqlx/query-58427b8e9c1a19ed3419c30f808ada7d0a0adc495a2b305786f996a2ba78bc30.json
new file mode 100644
index 000000000..b0809e9f4
--- /dev/null
+++ b/.sqlx/query-58427b8e9c1a19ed3419c30f808ada7d0a0adc495a2b305786f996a2ba78b... | 2 | 2 | 2 | [{"id": "G0", "claim": "The unwrap() call on group_paragraphs_by_max_content_len is unnecessary because the function returns Vec<String> directly, and it should be removed to prevent a compile error.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "wo... | null |
AppFlowy-IO__AppFlowy-Cloud__1319 | AppFlowy-IO/AppFlowy-Cloud | 1,319 | defect | b0908d2b8c5294f916f2f79f743eac8e612316c3 | 9ea941f140cbf080ca51f9cbee0067987ec81bed | chore: parser response | ## Summary by Sourcery
Refactor response handling in client API to centralize request ID logging and error processing
Enhancements:
- Introduce new helper functions `process_response_data` and `process_response_error` to standardize response handling across multiple HTTP client methods
- Add request ID extraction and... | diff --git a/Cargo.lock b/Cargo.lock
index 9c70ade4a8..6c7ddb67c1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -562,7 +562,6 @@ dependencies = [
"bytes",
"futures",
"infra",
- "pin-project",
"reqwest",
"serde",
"serde_json",
diff --git a/libs/appflowy-ai-client/Cargo.toml b/libs/appflowy-ai-client/Cargo.toml... | 4 | 3 | 1 | [{"id": "G0", "claim": "process_response_error always returns Ok(()) even when the response carries an error, so callers cannot detect the error condition; the error should be propagated (e.g. with Err(err)).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
AppFlowy-IO__AppFlowy-Cloud__1322 | AppFlowy-IO/AppFlowy-Cloud | 1,322 | defect | 2c1c820e68dce74a19821b0fe4a75fc41a647182 | 40c390e17ba94a4b67847141c79f74d425d77e67 | chore: set deployment id for azure embedding | 1. Set deployment id when using Azure embedding
2. Do not generate embedding when content is empty or it's same as previous embeded content | diff --git a/Cargo.lock b/Cargo.lock
index 4437c966b..f6d9f3e49 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1108,7 +1108,7 @@ dependencies = [
"once_cell",
"p256",
"percent-encoding",
- "ring 0.17.8",
+ "ring",
"sha2",
"subtle",
"time",
@@ -3004,7 +3004,7 @@ checksum = "55ac459de2512911e4b674ce33cf20befaba... | 1 | 1 | 0 | [{"id": "G0", "claim": "Consider adding a comment explaining why the jsonwebtoken dependency was updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
AppFlowy-IO__AppFlowy-Cloud__1328 | AppFlowy-IO/AppFlowy-Cloud | 1,328 | defect | f300884dde348ce855712b8e5a3ff3066682d160 | 8afb3d26d53bddd14a5a1851b49af499c4b7ba9b | add docs and tests for embedding related | ## Summary by Sourcery
Improve the document indexing and embedding system by refactoring chunk processing, adding error handling, and introducing a comprehensive documentation of the embedding architecture
Enhancements:
- Refactor document indexing to improve chunk filtering and embedding generation
- Add more robust... | diff --git a/libs/database-entity/src/dto.rs b/libs/database-entity/src/dto.rs
index 994613e85..e44ff1f5d 100644
--- a/libs/database-entity/src/dto.rs
+++ b/libs/database-entity/src/dto.rs
@@ -763,16 +763,26 @@ pub struct AFCollabEmbeddedChunk {
pub object_id: Uuid,
pub content_type: EmbeddingContentType,
pub ... | 5 | 2 | 0 | [{"id": "G0", "claim": "The README flowchart should separate the two background-indexing functions with \"index_pending_collab_one and index_pending_collabs\" instead of \"index_pending_collab_one/index_pending_collabs\".", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {... | null |
AppFlowy-IO__AppFlowy-Cloud__1341 | AppFlowy-IO/AppFlowy-Cloud | 1,341 | defect | 9ea3c46c26b006decfd3c98fffe910dd49a6607d | 02c816d99aef32da2374750e21db77c6f83c7a37 | feat: api to get invitation code info | API to get invitation code information.
## Summary by Sourcery
Add an API endpoint to retrieve invitation code information for workspaces
New Features:
- Implement a new API endpoint that allows fetching details about a workspace invitation code, including workspace name, owner information, member count, and user's ... | diff --git a/libs/app-error/src/lib.rs b/libs/app-error/src/lib.rs
index 0073dbbbb4..aec1b8a9a5 100644
--- a/libs/app-error/src/lib.rs
+++ b/libs/app-error/src/lib.rs
@@ -193,6 +193,9 @@ pub enum AppError {
#[error("{0}")]
FeatureNotAvailable(String),
+
+ #[error("unable to find invitation code")]
+ InvalidIn... | 4 | 1 | 1 | [{"id": "G0", "claim": "The WHERE clause 'invite_code = $1 AND expires_at IS NULL OR expires_at < NOW()' relies on implicit operator precedence and should be parenthesized as 'invite_code = $1 AND (expires_at IS NULL OR expires_at < NOW())'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
AppFlowy-IO__AppFlowy-Cloud__1345 | AppFlowy-IO/AppFlowy-Cloud | 1,345 | defect | 041df0549c4a00fe6e91f533226bd283a0c6a5aa | 3958e963ca84110217a4faae3fdc37b377a873a0 | feat: mask comment and reaction's email if profile name is not set | Currently, if a user did not set the profile name, or the SSO provider doesn't provide a name, email will be used as the default username. For better privacy protection, we will take the first 6 character of the email, excluding domain.
## Summary by Sourcery
Enhance user privacy by masking email addresses when a use... | diff --git a/libs/database-entity/src/dto.rs b/libs/database-entity/src/dto.rs
index 6cbe36ea7f..a0377d9cb0 100644
--- a/libs/database-entity/src/dto.rs
+++ b/libs/database-entity/src/dto.rs
@@ -854,9 +854,16 @@ pub struct AFWebUser {
pub avatar_url: Option<String>,
}
+#[derive(Serialize, Deserialize, Debug, Clon... | 4 | 1 | 0 | [{"id": "G0", "claim": "A test case should be added to test_publish_comments where a user's name is intentionally left blank, to verify the masking logic end to end.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The obfuscation logic should be encapsul... | null |
AppFlowy-IO__AppFlowy-Cloud__1375 | AppFlowy-IO/AppFlowy-Cloud | 1,375 | defect | 1a5d74a4e80ee278d731735f97556207847aad2c | a070270914c367cfa38d192693184330cd128f45 | feat: support individual page field update and removal | Add individual endpoint to update individual page field.
## Summary by Sourcery
Add granular endpoints for updating individual page fields in the workspace API
New Features:
- Support individual updates for page name, icon, and extra metadata
- Add separate endpoints for updating and removing page icons and extra fi... | diff --git a/libs/client-api/src/http_view.rs b/libs/client-api/src/http_view.rs
index 73a1f3dd4f..3f987953b1 100644
--- a/libs/client-api/src/http_view.rs
+++ b/libs/client-api/src/http_view.rs
@@ -1,7 +1,8 @@
use client_api_entity::workspace_dto::{
AddRecentPagesParams, AppendBlockToPageParams, CreateFolderViewPa... | 4 | 1 | 1 | [{"id": "G0", "claim": "Add tests for the remove_page_icon and remove_page_extra endpoints, verifying the icon becomes null and the extra field is cleared.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider abstracting the common request extraction... | null |
AppFlowy-IO__AppFlowy-Cloud__1413 | AppFlowy-IO/AppFlowy-Cloud | 1,413 | defect | b34f3c4edd8809a664a7ec9a67dcda6358bcd356 | 3ab0bf583a51818f4274aa7b87c6c385887fdcc3 | chore: bump collab commit id | ## Summary by Sourcery
Migrate and simplify collab database service interfaces, bump collab dependency revisions, fix document creation logic, and refine logging output.
Bug Fixes:
- Only create new documents when they do not already exist by inverting the existence check.
Enhancements:
- Migrate database collab ser... | diff --git a/Cargo.lock b/Cargo.lock
index 670aedee8..2bfc5a9d0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2076,7 +2076,7 @@ dependencies = [
[[package]]
name = "collab"
version = "0.2.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Collab?rev=0ecd070e4c4c23f8b93df0f7b42367baba60baaf#0ecd070e4c4c23f8b93d... | 2 | 1 | 1 | [{"id": "G0", "claim": "Calling self.get_collab inside get_collab could cause infinite recursion and a stack overflow; call the internal database-fetch function directly or rename one of the methods.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
AppFlowy-IO__AppFlowy-Cloud__1461 | AppFlowy-IO/AppFlowy-Cloud | 1,461 | defect | 28173734428d5c80f574282fe45f83b831a04bdd | 0e17a1f5a9edcd70ed113f0390df9770e71f715f | chore: assume dirty collab by default | ## Summary by Sourcery
Bug Fixes:
- Temporarily return true for is_dirty when no prior state exists to avoid false negatives in update detection | diff --git a/services/appflowy-collaborate/src/collab/cache/collab_cache.rs b/services/appflowy-collaborate/src/collab/cache/collab_cache.rs
index a4d29bcbf..cec4d7541 100644
--- a/services/appflowy-collaborate/src/collab/cache/collab_cache.rs
+++ b/services/appflowy-collaborate/src/collab/cache/collab_cache.rs
@@ -118... | 1 | 1 | 1 | [{"id": "G0", "claim": "Instead of unconditionally returning true via the temporary FIXME when the collab is not found in the dirty cache, mark the collab as dirty at the current timestamp and return true only there, so later reads with larger timestamps return false once a new snapshot is written.", "category": "corre... | null |
AppFlowy-IO__AppFlowy-Cloud__1464 | AppFlowy-IO/AppFlowy-Cloud | 1,464 | defect | 37654c5d782e0de5e7b34e96a36fe4a188be04e3 | 2745fd0d6ad883b51587b7e620193a73fa91bd44 | fix: infinite init_sync loop from old client | ## Summary by Sourcery
Instrument collaboration server code with detailed trace logging, streamline HTTP update handling, and remove legacy missing update logic to fix infinite server sync loop.
Bug Fixes:
- Fix infinite server sync loop by correcting state vector comparisons and update application in sync steps.
En... | diff --git a/services/appflowy-collaborate/src/client/client_msg_router.rs b/services/appflowy-collaborate/src/client/client_msg_router.rs
index d3aa6bb97..5846d82d1 100644
--- a/services/appflowy-collaborate/src/client/client_msg_router.rs
+++ b/services/appflowy-collaborate/src/client/client_msg_router.rs
@@ -112,7 +... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new handle_client_http_update always returns Ok(None), removing the previous missing-update logic; the reviewer asks to confirm this behavioral change is intentional or reintroduce diff calculation for clients with existing state vectors.", "category": "correctness", "verdict": "supported", ... | null |
AppFlowy-IO__AppFlowy-Cloud__1522 | AppFlowy-IO/AppFlowy-Cloud | 1,522 | defect | f2c9471b752c4b24615e778b4fbadd27e0b828e1 | 749ad19607d52a0b8d9fa0328bbcc29ef0740b48 | feat: support require_notification when providing page mention update | Support require notification when providing page mention update.
## Summary by Sourcery
Support require_notification when updating page mentions by adding a new database column, extending the DTO, and updating the upsert logic and tests accordingly
New Features:
- Add require_notification flag to page mentions to co... | diff --git a/libs/database-entity/src/dto.rs b/libs/database-entity/src/dto.rs
index 7827b21c7e..ea85f9f07a 100644
--- a/libs/database-entity/src/dto.rs
+++ b/libs/database-entity/src/dto.rs
@@ -1437,6 +1437,7 @@ pub enum MentionablePersonType {
pub struct PageMentionUpdate {
pub person_id: Uuid,
pub block_id: O... | 3 | 1 | 1 | [{"id": "G0", "claim": "The struct field is misspelled 'require_notitication' and should be 'require_notification' everywhere, since the mismatch with the upsert query's usage will cause a compilation error unless corrected.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, ... | null |
AppFlowy-IO__AppFlowy-Web__191 | AppFlowy-IO/AppFlowy-Web | 191 | defect | 9b98a2be6b9869a4c9a366d7624554a2fcfaea6e | c25451cae558b4441fe5bc18cdf83fa18bb7a501 | chore: fix file url | <!---
Thank you for submitting a pull request to the AppFlowy Web! The team will dedicate their best efforts to reviewing and approving your PR. If you have any questions or feedback, feel free to join our [Discord](https://discord.gg/wdjWUXXhtw).
-->
### **Description**
<!---
Provide a clear and concise descr... | diff --git a/src/application/services/js-services/http/http_api.ts b/src/application/services/js-services/http/http_api.ts
index afcc5ae91..60316fa8b 100644
--- a/src/application/services/js-services/http/http_api.ts
+++ b/src/application/services/js-services/http/http_api.ts
@@ -4,7 +4,6 @@ import { omit } from 'lodas... | 4 | 2 | 1 | [{"id": "G0", "claim": "Removing the http://localhost fallback from isFileURL may break existing flows if isURL still fails for some localhost patterns; the localhost cases should be verified or a minimal targeted fallback added.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
AppFlowy-IO__AppFlowy-Web__287 | AppFlowy-IO/AppFlowy-Web | 287 | defect | eb2f38ecd533a586a5b5eb3d68cc04a02c93de06 | 6a16cf74c9ad46ee6e8f63bcbaf04c17d8f78cf6 | fix: unsafe redirect_to | <!---
Thank you for submitting a pull request to the AppFlowy Web! The team will dedicate their best efforts to reviewing and approving your PR. If you have any questions or feedback, feel free to join our [Discord](https://discord.gg/wdjWUXXhtw).
-->
### **Description**
<!---
Provide a clear and concise descr... | diff --git a/src/application/session/__tests__/sign_in.test.ts b/src/application/session/__tests__/sign_in.test.ts
new file mode 100644
index 000000000..853e3c20d
--- /dev/null
+++ b/src/application/session/__tests__/sign_in.test.ts
@@ -0,0 +1,178 @@
+import { afterAuth, isSafeRedirectUrl, safeDecodeRedirectParam } fro... | 3 | 1 | 1 | [{"id": "G0", "claim": "The authenticated-redirect effect in LoginPage still redirects to any decoded redirectTo it reads during the same render, before effect 1 strips the parameter from the URL, so with redirectTo=https%3A%2F%2Fevil.com and isAuthenticated === true the browser is sent to https://evil.com; the effect ... | null |
AppFlowy-IO__AppFlowy-Web__303 | AppFlowy-IO/AppFlowy-Web | 303 | defect | 19180d66f8f2ce3230771cacf9687394b1180be5 | bbb63ed8e159d974012f95f653ffd2dba9bfca81 | chore: use retry after | <!---
Thank you for submitting a pull request to the AppFlowy Web! The team will dedicate their best efforts to reviewing and approving your PR. If you have any questions or feedback, feel free to join our [Discord](https://discord.gg/wdjWUXXhtw).
-->
### **Description**
<!---
Provide a clear and concise descr... | diff --git a/src/application/services/js-services/http/collab-api.ts b/src/application/services/js-services/http/collab-api.ts
index 964f16920..24fa3b7a8 100644
--- a/src/application/services/js-services/http/collab-api.ts
+++ b/src/application/services/js-services/http/collab-api.ts
@@ -10,7 +10,7 @@ import {
import ... | 3 | 1 | 0 | [{"id": "G0", "claim": "In parseRetryAfterSecs, handle additional Retry-After header value shapes (e.g. number or string[] from Axios headers) instead of only a single string, so Retry-After is parsed reliably across environments and intermediaries.", "category": "correctness", "verdict": "uncertain", "priority": "P2",... | null |
AppFlowy-IO__AppFlowy-Web__304 | AppFlowy-IO/AppFlowy-Web | 304 | defect | 15a08d7add43f2853ff32024854ed546a0f28085 | dcc7fa03218f223d390564e01112775a80add0f8 | fix: auto scroll to top in code block | fix #300 #261
## Summary by Sourcery
Prevent editor selection from causing unwanted scroll-to-top jumps in code blocks by customizing the selection scroll behavior.
Bug Fixes:
- Avoid page jumping to the top when the caret moves inside syntax-highlighted code blocks by only scrolling when the cursor is out of... | diff --git a/playwright/e2e/editor/blocks/code_block_scroll.spec.ts b/playwright/e2e/editor/blocks/code_block_scroll.spec.ts
new file mode 100644
index 000000000..041dbc54a
--- /dev/null
+++ b/playwright/e2e/editor/blocks/code_block_scroll.spec.ts
@@ -0,0 +1,166 @@
+import { test, expect, Page } from '@playwright/test'... | 2 | 2 | 1 | [{"id": "G0", "claim": "The temporary monkey-patching of leafEl.getBoundingClientRect would be safer if wrapped in a try/finally (or similar guard) so the override is always cleaned up even if scrollIntoView throws.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
AppFlowy-IO__AppFlowy-Web__306 | AppFlowy-IO/AppFlowy-Web | 306 | defect | cde50c839650776383933903180756be32427f25 | 504c533ae9b31392fb05d30e9fc5bb9297b3fce0 | fix: review bugs | <!---
Thank you for submitting a pull request to the AppFlowy Web! The team will dedicate their best efforts to reviewing and approving your PR. If you have any questions or feedback, feel free to join our [Discord](https://discord.gg/wdjWUXXhtw).
-->
### **Description**
<!---
Provide a clear and concise descr... | diff --git a/playwright/e2e/database/publish-database-views.spec.ts b/playwright/e2e/database/publish-database-views.spec.ts
new file mode 100644
index 000000000..d86e9f5f1
--- /dev/null
+++ b/playwright/e2e/database/publish-database-views.spec.ts
@@ -0,0 +1,241 @@
+/**
+ * Publish Database Views Test
+ *
+ * When a da... | 3 | 1 | 1 | [{"id": "G0", "claim": "The catch block around loadViewMeta treats any navigation error as an unpublished sibling database view and force-switches the tab via ?v=, which can also fire on unrelated errors (network issues, 500s, non-DB views) and swallow them; the reviewer asks to narrow the URL rewrite to when the targe... | null |
AppliedEnergistics__Applied-Energistics-2__5855 | AppliedEnergistics/Applied-Energistics-2 | 5,855 | defect | 9abfb6a004a86f046b3deb534fc924b2ab5b2b5d | 28a39f7d0603c5a7431fd74e49998de1a124d036 | Fix #96: optionally reduce amount in crafting calculations on failure | Only enabled for MultiCraftingTracker requests (interfaces and export busses) for now. Might look into offering the option to players one day? | diff --git a/src/main/java/appeng/api/networking/crafting/CalculationStrategy.java b/src/main/java/appeng/api/networking/crafting/CalculationStrategy.java
new file mode 100644
index 00000000000..f2805762e3d
--- /dev/null
+++ b/src/main/java/appeng/api/networking/crafting/CalculationStrategy.java
@@ -0,0 +1,13 @@
+packa... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add an explanatory comment above the requestedAmount field noting it is the initially requested amount of output and may be reduced depending on the strategy used.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
AppliedEnergistics__Applied-Energistics-2__6592 | AppliedEnergistics/Applied-Energistics-2 | 6,592 | defect | c6afbeadbff80ef9a61eb0e418c6474aa3dc7bac | 27e86be36a88f32bff9466a08e614d102c4dabe1 | Fix #6524: Optimize KeyCounter | - Use `computeIfAbsent` when looking for a VariantCounter, and switch to the fastutil Reference2ObjectMap to have a non-naive implementation.
- Use `addTo` provided by certain Object2LongMap implementations instead of the naively implemented mergeLong. | diff --git a/src/main/java/appeng/api/stacks/AEKey2LongMap.java b/src/main/java/appeng/api/stacks/AEKey2LongMap.java
new file mode 100644
index 00000000000..1e1b65b5c0b
--- /dev/null
+++ b/src/main/java/appeng/api/stacks/AEKey2LongMap.java
@@ -0,0 +1,31 @@
+package appeng.api.stacks;
+
+import java.util.Comparator;
+
+... | 1 | 1 | 0 | [{"id": "G0", "claim": "Don't leave the CME test commented out — either annotate it @Disabled or remove it, because commented-out code rots.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
AppliedEnergistics__Applied-Energistics-2__7035 | AppliedEnergistics/Applied-Energistics-2 | 7,035 | defect | 5438a25bcce64927f2040458d185232a3e0fea5a | d8c93b38598adbf59ddecf45f4dfbfe13ac6d774 | fix #7015 | also adds a test that covers both item and fluid insertion for both transfer api and the internal api.
fix #7015 | diff --git a/src/main/java/appeng/blockentity/misc/CondenserInventory.java b/src/main/java/appeng/blockentity/misc/CondenserInventory.java
index 18a6a45d168..d9fbe247ae2 100644
--- a/src/main/java/appeng/blockentity/misc/CondenserInventory.java
+++ b/src/main/java/appeng/blockentity/misc/CondenserInventory.java
@@ -38,... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test can use the storageAccessor field (or inv) instead of calling getMEHandler again.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test repeats the asserts from the previous test and should not.", "category... | null |
AprilRobotics__apriltag__421 | AprilRobotics/apriltag | 421 | defect | 31b29af3cd594f5952e3f4c294aeaacfec34ffca | 7d18fc5605621c9b802de63c5038a5bdce195ac9 | Reduced QuickDecode memory consumption by 128,884x | ## Pigeonhole-principle based quick decode table
### Problem Statement
The previous AprilTag decoding implementation relied on exhaustive precomputation of error permutations to achieve O(1) lookups. While effective for small tag families (e.g., 16h5), this approach is computationally and spatially prohibitive for ... | diff --git a/apriltag.c b/apriltag.c
index 296c77a1..a2f2d74e 100644
--- a/apriltag.c
+++ b/apriltag.c
@@ -117,19 +117,13 @@ static double graymodel_interpolate(struct graymodel *gm, double x, double y)
return gm->C[0]*x + gm->C[1]*y + gm->C[2];
}
-struct quick_decode_entry
+static inline int popcount64(uint64_... | 7 | 6 | 2 | [{"id": "G0", "claim": "quick_decode_init should null-check the struct quick_decode calloc, set errno to ENOMEM and return early instead of dereferencing a null pointer when allocation fails.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The per-ch... | null |
ArcBees__Jukito__18 | ArcBees/Jukito | 18 | defect | 5cf94b8cf2023ac209249238849b08c2630c0a3b | b9d1cd12211111360b77e2a6b97237e21625bb41 | Named @All | Based on the patch from issue 32.
Extension to the @All annotation and the bindMultiple() methods which allows to group multiple instances/classes by a name and have only the ones with a given name injected into a test.
i.e.:
``` java
bindManyNamedInstances(Integer.class, "even", 2, 4, 6);
bindManyNamedInstances(Int... | diff --git a/jukito/src/main/java/org/jukito/All.java b/jukito/src/main/java/org/jukito/All.java
index 54b7b4d..a798631 100644
--- a/jukito/src/main/java/org/jukito/All.java
+++ b/jukito/src/main/java/org/jukito/All.java
@@ -31,9 +31,24 @@
* If more than one parameter is annotated with {@literal @}{@link All} then
... | 3 | 1 | 0 | [{"id": "G0", "claim": "The binding-collection logic inside computeTestMethods should be simplified by extracting it into methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Within the NamedUniqueAnnotations file, type definitions should be ... | null |
ArcadeData__arcadedb__1239 | ArcadeData/arcadedb | 1,239 | defect | c985e67ed33863eaba08a33c906e440df14ebf6a | 00b8286b9eadec1f218e0b309d331248ec49d19a | adds global configuration key to register gremlin traversal sources | Allows customizing the gremlin script engines traversal sources. This allows clients of the database to register tinkerpop traversal DSLs or customize the traversal strategies.
## Motivation
Using tinkerpop DSLs and customizing traversal strategies.
## Related issues
A list of issues either fixed, containing ar... | diff --git a/engine/src/main/java/com/arcadedb/GlobalConfiguration.java b/engine/src/main/java/com/arcadedb/GlobalConfiguration.java
index 17157e101ae..83d97183425 100644
--- a/engine/src/main/java/com/arcadedb/GlobalConfiguration.java
+++ b/engine/src/main/java/com/arcadedb/GlobalConfiguration.java
@@ -214,6 +214,10 @... | 4 | 3 | 0 | [{"id": "G0", "claim": "The gremlin-annotations dependency should be test-scoped (or the annotation processor otherwise limited to tests) so that it does not affect the release jar.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ArcadeTraversalB... | null |
ArcadeData__arcadedb__1405 | ArcadeData/arcadedb | 1,405 | defect | 4313af59164138dbd2c015d1456c4d57d2b90dee | 942f8501ed6286bcb41407dcdccb1e7865b161c7 | feat: Enhance `RemoteServer` and `Console` create-user to assign group | ## What does this PR do?
1. The `RemoteServe` class method `createUser` is overloaded with a variant with the signature
```
public void createUser(final String userName, final String password, final HashMap<String,String> databases)
```
As for the HTTP API server command the `databases` HashMap should have keys ... | diff --git a/console/src/main/java/com/arcadedb/console/Console.java b/console/src/main/java/com/arcadedb/console/Console.java
index 581e6c52548..ee84fc5d0bb 100644
--- a/console/src/main/java/com/arcadedb/console/Console.java
+++ b/console/src/main/java/com/arcadedb/console/Console.java
@@ -467,16 +467,25 @@ private v... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new createUser code should declare the databases maps with the Map interface type instead of the concrete HashMap.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ArcadeData__arcadedb__1680 | ArcadeData/arcadedb | 1,680 | defect | fc7ab42a053689f40b440757b28d46fdcd367abd | 6b21e4b6cc1e260e4264ea9e592f5a46ee42d46a | feature-1659: Initial draft | ## What does this PR do?
Initial draft for encryption implementation at serialisation level
## Motivation
Provide REST encryption
## Related issues
https://github.com/ArcadeData/arcadedb/issues/1659
## Additional Notes
This is draft, so I'm looking for suggestions
## Checklist
- [x] I have ru... | diff --git a/engine/src/main/java/com/arcadedb/database/DataEncryption.java b/engine/src/main/java/com/arcadedb/database/DataEncryption.java
new file mode 100644
index 00000000000..017a061e657
--- /dev/null
+++ b/engine/src/main/java/com/arcadedb/database/DataEncryption.java
@@ -0,0 +1,30 @@
+/*
+ * Copyright © 2024-pr... | 4 | 2 | 0 | [{"id": "G0", "claim": "Encryption errors should throw a dedicated EncryptionException extending ArcadeDBException instead of a plain RuntimeException.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear why a new Binary() object has to be creat... | null |
ArcadeData__arcadedb__1954 | ArcadeData/arcadedb | 1,954 | defect | f8d4f7433b4106fb170e13e7dd9fd863028b5c53 | e305d0c99fadf15c03fd4b83dab765da3d8cba75 | #1439 fix properties mapping on Projection | ## What does this PR do?
properties mapping is failing in case of projection that are not bind to and Element
## Checklist
- [x] I have run the build using `mvn clean package` command
- [x] My unit tests cover both failure and success scenarios
| diff --git a/engine/src/main/java/com/arcadedb/query/sql/parser/Projection.java b/engine/src/main/java/com/arcadedb/query/sql/parser/Projection.java
index 9c2479605dc..e6129777763 100644
--- a/engine/src/main/java/com/arcadedb/query/sql/parser/Projection.java
+++ b/engine/src/main/java/com/arcadedb/query/sql/parser/Pro... | 2 | 2 | 1 | [{"id": "G0", "claim": "Changing `database.command(query.language, query.query)` to `database.query(query.language, query.query)` in `queryCommand` may be incorrect, since database changes are handled in `parseCommand` and `queryCommand` should be read-only.", "category": "correctness", "verdict": "supported", "priorit... | null |
ArcadeData__arcadedb__2146 | ArcadeData/arcadedb | 2,146 | defect | ef25a1ec74ce1433d95c16fd6cb2972bd3259152 | 2b645832c6aabca720c54408d1c4b9e6137c1dc5 | #2119 test: add parameterized query tests for JdbcQueries and psycopg2 | This pull request includes new tests for parameterized queries in both Python and Java, ensuring that the driver correctly handles named and positional parameters.
### New tests for parameterized queries:
* [`e2e-python/tests/test_arcadedb.py`](diffhunk://#diff-43e0690c67917d4e0065a0d68c2fd8361183c9cab76f3e0162d4... | diff --git a/e2e-python/tests/test_arcadedb.py b/e2e-python/tests/test_arcadedb.py
index d077abad2c4..20ff1d1ed66 100644
--- a/e2e-python/tests/test_arcadedb.py
+++ b/e2e-python/tests/test_arcadedb.py
@@ -197,3 +197,36 @@ def test_psycopg2_return_array_common():
datas), f"For {type_n... | 3 | 3 | 0 | [{"id": "G0", "claim": "Rename the test and its docstring to use 'parameterized' instead of 'parametrized' for consistency with the PR title and common usage.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the positional-query test and it... | null |
ArcadeData__arcadedb__2198 | ArcadeData/arcadedb | 2,198 | defect | a7bfd27ff4bd95c67b59eabeb7781c786d5318e5 | d79f62af5839f1d0480e0d16e614f1d226947701 | feat:improve backup database functionality via SQL and add related tests | refs to #2116
This pull request introduces several changes aimed at improving database backup functionality, enhancing test coverage, and refining code quality. The most critical updates include adding a new backup feature, improving error handling during backups, and expanding test cases to ensure the robustness o... | diff --git a/.gitignore b/.gitignore
index bb570cd9eaf..8b19f86cc61 100644
--- a/.gitignore
+++ b/.gitignore
@@ -545,3 +545,4 @@ dist
# Python egg metadata
*.egg-info/
+/backups/
diff --git a/e2e/src/test/java/com/arcadedb/e2e/ArcadeContainerTemplate.java b/e2e/src/test/java/com/arcadedb/e2e/ArcadeContainerTemplate... | 4 | 4 | 1 | [{"id": "G0", "claim": "The mkdirs() calls in the new createDirectories() method should have their return values checked so that directory-creation failures are logged and handled instead of silently ignored.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
ArcadeData__arcadedb__2229 | ArcadeData/arcadedb | 2,229 | defect | 0deebdd3c07b496b878ca4d1c3805f1737dd9d8d | 52da3d176f72255ab83a86b95080979dab8ba1f6 | fix: fixed Postgres driver CPU 100% | This fixes the issue with CPU 100% when the postgres driver has an open connection.
The issue was with the read from the socket: if no data is present, a spin lock like behavior happens inside the read. Now if the data is not present, sleep 100ms and check again.
The idea would be implementing a multiplexing pol... | diff --git a/postgresw/src/main/java/com/arcadedb/postgres/PostgresNetworkExecutor.java b/postgresw/src/main/java/com/arcadedb/postgres/PostgresNetworkExecutor.java
index 4860eb5531a..b6166dee5f7 100755
--- a/postgresw/src/main/java/com/arcadedb/postgres/PostgresNetworkExecutor.java
+++ b/postgresw/src/main/java/com/ar... | 1 | 1 | 0 | [{"id": "G0", "claim": "The magic number 100 passed to CodeUtils.sleep in readMessage should be defined as a named class-level constant (e.g. NETWORK_IDLE_SLEEP_MS) for maintainability and clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ArcadeData__arcadedb__2255 | ArcadeData/arcadedb | 2,255 | defect | c6587f3cd2f314591a695ddff6f829a63911bd9f | d3e507305b76b88a7d50ba55c4df4b2e9ba9775c | #2236 feat: add server-side retry configuration for remote database commands | This pull request introduces improvements to the `RemoteHttpComponent` class, adds retry logic for HTTP commands, and updates test cases to accommodate the new configuration option. The most notable changes include the addition of a `retries` parameter, modifications to the `httpCommand` method, and updates to the test... | diff --git a/network/src/main/java/com/arcadedb/remote/RemoteDatabase.java b/network/src/main/java/com/arcadedb/remote/RemoteDatabase.java
index 5d3ea5e92f4..48bfe9ed35d 100644
--- a/network/src/main/java/com/arcadedb/remote/RemoteDatabase.java
+++ b/network/src/main/java/com/arcadedb/remote/RemoteDatabase.java
@@ -44,... | 2 | 1 | 0 | [{"id": "G0", "claim": "The JSON key \"retries\" should be defined as a public static final String constant instead of being used as a literal string, to centralize the key and reduce typo risk.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rem... | null |
ArcadeData__arcadedb__2305 | ArcadeData/arcadedb | 2,305 | defect | 2e3c9001ce8ed52c7a153335906b7c233c96c4c0 | d0c06fdf3d47436da4a594a05c19176c361ff294 | #2304 feat: add performance testing for single server load in ArcadeDB | ## What does this PR do?
Add initial infra for perfs tests using containers and an initial load test for single node deployment
## Motivation
Even if Some perfomance tests are in place, they spin up Servers inside the same JVM of the test code.
## Related issues
#2304
## Checklist
- [x] I have run... | diff --git a/.github/workflows/mvn-test.yml b/.github/workflows/mvn-test.yml
index ff671273ff1..e42c2c2cabe 100644
--- a/.github/workflows/mvn-test.yml
+++ b/.github/workflows/mvn-test.yml
@@ -87,7 +87,7 @@ jobs:
- name: Run Unit Tests with Coverage
# verify because it runs the tests and generates the... | 6 | 2 | 1 | [{"id": "G0", "claim": "The workflow does not limit the permissions of the GITHUB_TOKEN; an explicit permissions block (minimal starting point contents: read) should be set.", "category": "security", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The task submission logic has a... | null |
ArcadeData__arcadedb__2321 | ArcadeData/arcadedb | 2,321 | defect | 945178561921bd2e231e68af2d84aafa098ceb5c | 0c187613f1e786f389de4914af406bcc6e40cb6a | feat: enhance load testing with increased user and friendship counts | This pull request introduces significant updates to performance tests and supporting utilities for the ArcadeDB project. Key changes include the addition of new test classes, enhancements to existing load tests, optimizations in database interaction, and updates to container configurations for improved memory and threa... | diff --git a/e2e-perf/src/test/java/com/arcadedb/test/performance/SingleLocalhostServerSimpleLoadTestIT.java b/e2e-perf/src/test/java/com/arcadedb/test/performance/SingleLocalhostServerSimpleLoadTestIT.java
new file mode 100644
index 00000000000..0d0bd334b00
--- /dev/null
+++ b/e2e-perf/src/test/java/com/arcadedb/test/... | 3 | 2 | 1 | [{"id": "G0", "claim": "Calling System.exit(1) inside the test utility terminates the whole JVM and prevents the test suite from completing and generating proper reports; failures should instead be handled by throwing exceptions, and e.printStackTrace() should be replaced by logging the full stack trace via the logger.... | null |
ArcadeData__arcadedb__2351 | ArcadeData/arcadedb | 2,351 | defect | 3a0a5d94975d4e6e49527205b084da1cb45c8f31 | 773fbb50dbf5e7492566e1aff59696ffc335f2b4 | fix: enhance edge creation and bucket handling in remote database cla… | #1578
This pull request introduces enhancements to the graph and remote database APIs, with updates to edge creation, schema handling, and test cases. The changes improve functionality, add support for bucket-specific edge creation, and simplify edge direction handling in tests.
### Graph API Enhancements:
* Ad... | diff --git a/engine/src/main/java/com/arcadedb/graph/MutableVertex.java b/engine/src/main/java/com/arcadedb/graph/MutableVertex.java
index c7f0fbf1997..ae998a58193 100644
--- a/engine/src/main/java/com/arcadedb/graph/MutableVertex.java
+++ b/engine/src/main/java/com/arcadedb/graph/MutableVertex.java
@@ -134,6 +134,7 @@... | 4 | 4 | 2 | [{"id": "G0", "claim": "getTypeByBucketName can throw a NullPointerException when resultSet.nextIfAvailable() returns null (no type associated with the bucketName), so the null case should be handled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "I... | null |
ArcadeData__arcadedb__2363 | ArcadeData/arcadedb | 2,363 | defect | daa62154e4cbf1d95026f0142d29a1cf5ea3fbc2 | c91ddbe32eafa273bf8f7f80c1762a8bc7422a0f | NullPointerException when database data directory hasn't the proper permissions | ## What does this PR do?
The goal of this PR is adding proper validations on database directory permissions.
## Motivation
Contribute for the community
## Related issues
https://github.com/ArcadeData/arcadedb/issues/2362
## Additional Notes
The code wasn't refactored according the TODO comments. It... | diff --git a/engine/src/main/java/com/arcadedb/engine/FileManager.java b/engine/src/main/java/com/arcadedb/engine/FileManager.java
index 6cf042a0533..fb8378c4f15 100644
--- a/engine/src/main/java/com/arcadedb/engine/FileManager.java
+++ b/engine/src/main/java/com/arcadedb/engine/FileManager.java
@@ -73,8 +73,17 @@ publ... | 8 | 7 | 2 | [{"id": "G0", "claim": "Using PosixFilePermissions makes the test platform-dependent and it will likely fail on non-POSIX systems like Windows; restrict its execution with JUnit 5's @EnabledOnOs.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The hardco... | null |
ArcadeData__arcadedb__2455 | ArcadeData/arcadedb | 2,455 | defect | b678e59377e1a1899c777bb690c3db774eb6f8ed | 503b30f89923e2e0f446bf2cf09893a3ffcf53bd | feat: supported rename of types | Issue #2454
## What does this PR do?
A brief description of the change being made with this pull request.
## Motivation
What inspired you to submit this pull request?
## Related issues
A list of issues either fixed, containing architectural discussions, otherwise relevant
for this Pull Request.
##... | diff --git a/engine/src/main/java/com/arcadedb/engine/Component.java b/engine/src/main/java/com/arcadedb/engine/Component.java
index 1dbf88d9559..962fefc3ca8 100644
--- a/engine/src/main/java/com/arcadedb/engine/Component.java
+++ b/engine/src/main/java/com/arcadedb/engine/Component.java
@@ -27,7 +27,7 @@
*/
public ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The rollback logic in LocalVertexType.rename's catch block reconstructs the old bucket name with lastIndexOf(\"_\"), which does not properly restore edge buckets with _out/_in suffixes and could corrupt the schema if an IOException occurs during the rename.", "category": "correctness", "verdict"... | null |
ArcadeData__arcadedb__2464 | ArcadeData/arcadedb | 2,464 | defect | 68d16ec606e1f0b4d4524e5670c97a68dec24877 | 1097c7cb247627cd95c47b9494ef69e5ccaec6b3 | fix(PaginatedComponentFile): improve file renaming logic to handle co… | fixes #2463 | diff --git a/engine/src/main/java/com/arcadedb/engine/PaginatedComponentFile.java b/engine/src/main/java/com/arcadedb/engine/PaginatedComponentFile.java
index e3755a319db..59253d0e7af 100644
--- a/engine/src/main/java/com/arcadedb/engine/PaginatedComponentFile.java
+++ b/engine/src/main/java/com/arcadedb/engine/Paginat... | 3 | 3 | 1 | [{"id": "G0", "claim": "If `osFile.getName()` does not contain an underscore, `indexOf` returns -1 and `substring` throws a `StringIndexOutOfBoundsException`, crashing the rename operation; the index should be checked before use.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
ArcadeData__arcadedb__2467 | ArcadeData/arcadedb | 2,467 | defect | a8756c9ebc9d0d0ce72c568d0c9843329c388034 | 3fd30aeca96b39ad07aae83b3eccb0b360d3358b | #2230 enhance variable behaviour in SQL script | #2230
This pull request introduces improvements to variable handling in the SQL execution context and enhances test coverage for batch scripts and variable access. The most significant changes are the addition of support for accessing fields of result set variables using dot notation, refactoring for clarity and co... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/executor/BasicCommandContext.java b/engine/src/main/java/com/arcadedb/query/sql/executor/BasicCommandContext.java
index 879264feba4..500dfa75fa5 100644
--- a/engine/src/main/java/com/arcadedb/query/sql/executor/BasicCommandContext.java
+++ b/engine/src/main/java/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The dot-notation handling in BasicCommandContext.getVariable is vulnerable to both a crash and incorrect behavior: a variable name with a trailing dot (e.g. $var.) throws an ArrayIndexOutOfBoundsException, and a name with multiple dots (e.g. $var.prop1.prop2) is silently evaluated as $var.prop1,... | null |
ArcadeData__arcadedb__2501 | ArcadeData/arcadedb | 2,501 | defect | aae1b326e3c8f2f7eae5a6427329927b677dce95 | 4f00bb4af330930018695ed8fe4eda1f60801cf9 | feat(tests): enhance load tests to support gRPC protocol | This pull request introduces support for GRPC protocol in the end-to-end performance tests, enabling tests to run against both HTTP and GRPC interfaces. The changes include refactoring test setup to use a new `ServerWrapper` abstraction, updating the test containers to expose the GRPC port and enable the GRPC plugin, a... | diff --git a/e2e-perf/pom.xml b/e2e-perf/pom.xml
index 458b2328568..f66d183c872 100644
--- a/e2e-perf/pom.xml
+++ b/e2e-perf/pom.xml
@@ -66,12 +66,24 @@
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>com.arcad... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hasNext() override in BatchedStreamingResultSet is redundant and contains a misleading empty if block, and can safely be removed entirely to improve clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ArcadeData__arcadedb__2550 | ArcadeData/arcadedb | 2,550 | defect | d76c6f987ca72e623a03c78c92e9d7a7e0b3a0a7 | e7c9779db8cf361ca0136df00c44cd141ec21542 | #2497 fix: resolve JSON serialization issue with empty Object[] arrays | This pull request addresses a serialization bug with empty arrays in JSON handling, specifically fixing a `NoSuchElementException` when serializing documents containing empty arrays (issue #2497). The changes ensure that empty arrays and `Object[]` types are properly handled and serialized as JSON arrays, not as Java o... | diff --git a/engine/src/main/java/com/arcadedb/serializer/JsonSerializer.java b/engine/src/main/java/com/arcadedb/serializer/JsonSerializer.java
index 7c5449253dd..8253855082b 100644
--- a/engine/src/main/java/com/arcadedb/serializer/JsonSerializer.java
+++ b/engine/src/main/java/com/arcadedb/serializer/JsonSerializer.... | 10 | 10 | 0 | [{"id": "G0", "claim": "The assertion on line 108 is redundant with the one on line 107; the size and content of the list can be verified more concisely using AssertJ's containsExactly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The contents... | null |
ArcadeData__arcadedb__2562 | ArcadeData/arcadedb | 2,562 | defect | 9c8ae1739380f34c33324cc128c7adf710e85c3a | b51337efaaf248d4a3b19bf71fb9e4e5c9944927 | #2560 fix: ensure consistent exception propagation in ImmutableDocument duing lazy loading | This pull request addresses an inconsistency in the lazy loading behavior of the `ImmutableDocument` class, specifically ensuring that the `get()` method now properly propagates exceptions thrown during lazy loading, just like other related methods. This fix improves the reliability of permission checks and exception h... | diff --git a/engine/src/main/java/com/arcadedb/database/ImmutableDocument.java b/engine/src/main/java/com/arcadedb/database/ImmutableDocument.java
index 4b7d4fdaa92..e86fbf3326c 100644
--- a/engine/src/main/java/com/arcadedb/database/ImmutableDocument.java
+++ b/engine/src/main/java/com/arcadedb/database/ImmutableDocum... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test method contains significant code repetition for verifying each method's behavior and should be refactored to use a Stream of actions to make it more concise, easier to maintain, and clearly show that a fresh ImmutableDocument instance is fetched for each action.", "category": "maintaina... | null |
ArcadeData__arcadedb__2591 | ArcadeData/arcadedb | 2,591 | defect | 959b2af916d02d457505ad4f7400b310c8c372b2 | faab84d57198e3e0a847bea8e80c0ae32e09d132 | #2590 fix: enforce unique constraints during UPDATE operations | This pull request addresses enforcement of unique constraints during update operations in the database engine. The main change ensures that unique index constraints are properly checked not only on add operations but also on replace operations. Additionally, comprehensive tests have been added to verify correct behavio... | diff --git a/engine/src/main/java/com/arcadedb/database/TransactionIndexContext.java b/engine/src/main/java/com/arcadedb/database/TransactionIndexContext.java
index cb61917f267..51bfe57f734 100644
--- a/engine/src/main/java/com/arcadedb/database/TransactionIndexContext.java
+++ b/engine/src/main/java/com/arcadedb/datab... | 3 | 2 | 0 | [{"id": "G0", "claim": "The test case verifying UPDATE from null to a duplicate unique value is incomplete, containing commented-out assertions and debugging print statements, and should be cleaned up and implemented to correctly verify that a DuplicatedKeyException is thrown.", "category": "testing", "verdict": "suppo... | null |
ArcadeData__arcadedb__2605 | ArcadeData/arcadedb | 2,605 | defect | dce89a90344c120339ed0e4ef7d290ca53bedf72 | 8b0c1937a6f94bda3df062c62420203e882fd8c7 | feat: enhance CI by adding slow unit tests and coverage reporting | This pull request improves the test workflow by splitting slow-running unit tests from standard ones and updating the GitHub Actions configuration to report and upload test results. Additionally, several tests are now explicitly marked as "slow" using JUnit tags, allowing for more granular test execution and reporting.... | diff --git a/.github/workflows/mvn-test.yml b/.github/workflows/mvn-test.yml
index 5a01974a87b..3c9ecd066ef 100644
--- a/.github/workflows/mvn-test.yml
+++ b/.github/workflows/mvn-test.yml
@@ -87,7 +87,50 @@ jobs:
- name: Run Unit Tests with Coverage
# verify because it runs the tests and generates th... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `jdk.jfr.Category` import added to ACIDTransactionTest.java is not used within the file and should be removed to keep the code clean.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
ArcadeData__arcadedb__2756 | ArcadeData/arcadedb | 2,756 | defect | 72d73f29951f9fc61fa99a40039d4bbb6f517abd | 4b6b89dfa2fd96d9ca0e7ff5c3569fe81297a8a2 | Review and plan solution for GitHub issue | …st match
Problem:
When executing a DELETE statement with multiple OR conditions (e.g., (A AND B) OR (C AND D) OR (E AND F)), only records matching the FIRST OR branch were deleted. The remaining OR branches were silently ignored.
Root Cause:
In SelectExecutionPlanner.handleTypeAsTargetWithIndex(), when process... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/executor/SelectExecutionPlanner.java b/engine/src/main/java/com/arcadedb/query/sql/executor/SelectExecutionPlanner.java
index e48b85ba405..003e66dd672 100644
--- a/engine/src/main/java/com/arcadedb/query/sql/executor/SelectExecutionPlanner.java
+++ b/engine/src/m... | 1 | 1 | 0 | [{"id": "G0", "claim": "The isEmpty() check on indexSearchDescriptors appears to be redundant and can be removed, since the stream no longer filters elements so the list can never be empty at that point.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ArcadeData__arcadedb__2760 | ArcadeData/arcadedb | 2,760 | defect | 75e77c59f9ab10e2f631f4bd2f0811890b360d86 | 66b46360bfd1c6039f641cbd67bd05bef8a406a7 | fix: improve delete functionality with multiple OR conditions and enh… | This pull request improves index selection logic in the SQL query planner and updates related tests to use more modern assertions and add new coverage for multi-index deletes. The main focus is on refining how indexes are chosen for queries, ensuring more optimal query execution, and enhancing test reliability and comp... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/executor/SelectExecutionPlanner.java b/engine/src/main/java/com/arcadedb/query/sql/executor/SelectExecutionPlanner.java
index 0dd6ff728ed..95af44878d8 100644
--- a/engine/src/main/java/com/arcadedb/query/sql/executor/SelectExecutionPlanner.java
+++ b/engine/src/m... | 2 | 1 | 0 | [{"id": "G0", "claim": "Use .toList() instead of .collect(Collectors.toList()) for the filtered lowest-cost descriptor stream, for consistency with the other stream operations updated in the file, since the resulting list is not modified before being re-assigned.", "category": "maintainability", "verdict": "supported",... | null |
ArcadeData__arcadedb__2786 | ArcadeData/arcadedb | 2,786 | defect | 77cb8a233b789e96742fefbe8d154ae4e2ec0b75 | 29ab3271d28fba3395d7675ea536f05f10ed212d | fix: enhance index awareness for CONTAINS, IN, and CONTAINSALL operat… | This pull request improves the query engine's ability to use BY-ITEM indexes for list fields with the `CONTAINS`, `IN`, and `CONTAINSALL` operators, not just `CONTAINSANY`. It also adds comprehensive tests to ensure these operators take advantage of BY-ITEM indexes, addressing a previously reported issue.
**Index us... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/parser/ContainsAllCondition.java b/engine/src/main/java/com/arcadedb/query/sql/parser/ContainsAllCondition.java
index 3726eb629c1..7953fb03ba0 100644
--- a/engine/src/main/java/com/arcadedb/query/sql/parser/ContainsAllCondition.java
+++ b/engine/src/main/java/com... | 2 | 2 | 2 | [{"id": "G0", "claim": "isIndexAware in ContainsAllCondition should null-check right (returning right != null && right.isEarlyCalculated(...)) to avoid a NullPointerException when a CONTAINSALL condition uses a block/subquery instead of an expression.", "category": "correctness", "verdict": "supported", "priority": "P1... | null |
ArcadeData__arcadedb__2803 | ArcadeData/arcadedb | 2,803 | defect | 62efaedaa2d237e83eb429e6f1f39fc2fd3e6f55 | e2b62cd47b3cc79161e6aeaf3e44a70ddffa0d6e | Support indexing of properties in embedded documents inside lists with BY ITEM | ## What does this PR do?
Enables indexing nested properties within embedded documents or maps contained in lists using the `BY ITEM` modifier, with query optimizer integration for direct nested property queries. Syntax: `CREATE INDEX ON Photo (\`tags.id\` BY ITEM) NOTUNIQUE`.
## Motivation
Users needed to index prop... | diff --git a/engine/src/main/java/com/arcadedb/database/DocumentIndexer.java b/engine/src/main/java/com/arcadedb/database/DocumentIndexer.java
index 033754f3209..453e77fec39 100644
--- a/engine/src/main/java/com/arcadedb/database/DocumentIndexer.java
+++ b/engine/src/main/java/com/arcadedb/database/DocumentIndexer.java... | 2 | 1 | 1 | [{"id": "G0", "claim": "The SQL queries `SELECT FROM Photo WHERE tags.id CONTAINS 103` and `SELECT FROM Photo WHERE tags CONTAINS (id=100 and name='Apple Inc')` must both use the index on the indexed property instead of scanning the table.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": ... | null |
ArcadeData__arcadedb__2815 | ArcadeData/arcadedb | 2,815 | defect | 3a5a97a0f84308aa5fa20bcfd2b20d4b6a51a668 | d3e1162cf63b8f2ed8070826a5078455e3be377a | Fix for #2814 - [BUG] Flitering with where returns wrong results | Feat: fixes #2814 ([BUG] Flitering with where returns wrong results )
## Bug:
When using non-unique indexes in ArcadeDB, queries failed to find records after certain update operations:
- Records were correctly updated in the database (verified by queries without WHERE clause)
- Queries using indexed WHERE clau... | diff --git a/e2e-bun/.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc b/e2e-bun/.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc
new file mode 120000
index 00000000000..6100270f85a
--- /dev/null
+++ b/e2e-bun/.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc
@@ -0,0 +1 @@
+../../CLAUDE.md
\ No newli... | 7 | 7 | 1 | [{"id": "G0", "claim": "Hardcoding the root credentials in the test helpers is a security risk; the password should be loaded from an environment variable (e.g. process.env.ARCADEDB_ROOT_PASSWORD) with the old default kept only as a fallback.", "category": "security", "verdict": "supported", "priority": "P1", "scope": ... | null |
ArcadeData__arcadedb__2831 | ArcadeData/arcadedb | 2,831 | defect | bf1f20e153747924c4db374855b8d54234c6592b | c84f8aae6a02a024aca23c7d3ab073d997ec69d9 | LSM Vector updates and fixes | This pull request introduces several improvements and fixes to the handling of vector indexes in the codebase, particularly for LSMVectorIndex and its compaction process. It also enhances array handling in serialization and comparison utilities, and improves test coverage for vector index import and query operations. T... | diff --git a/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java b/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java
index 47a3a0f9d88..0074fbf2566 100644
--- a/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java
+++ b/engine/src/main/java/com/arcadedb/index/vector/LSMVect... | 6 | 3 | 0 | [{"id": "G0", "claim": "There is a stray semicolon after the approximateResults declaration in GloVeTest.java, which the review flags as a syntax error, and it should be removed.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The nested while (resul... | null |
ArcadeData__arcadedb__2858 | ArcadeData/arcadedb | 2,858 | defect | dfd3f5eef07304c66eab6f28c93eb35097a30544 | 2554e0f14b7db213577544ce73f79d5949290d6a | fix: preserve SQL aliases in gRPC ResultSet serialization | This pull request addresses issue #2854 by fixing a critical bug in the gRPC server that prevented SQL column aliases from being preserved in query results. The main change is a switch from Record-level to Result-level serialization in the gRPC server, ensuring that aliased columns and metadata properties are correctly... | diff --git a/2854-grpc-resultset-alias.md b/2854-grpc-resultset-alias.md
new file mode 100644
index 00000000000..ce1b006a922
--- /dev/null
+++ b/2854-grpc-resultset-alias.md
@@ -0,0 +1,167 @@
+# Issue #2854: gRPC ResultSet serialization is missing alias
+
+**Created:** 2025-12-03
+**Branch:** fix/2854-grpc-resultset-al... | 5 | 5 | 0 | [{"id": "G0", "claim": "The 'Files Modified' list in 2854-grpc-resultset-alias.md numbers its second item as `3.` when it should be `2.`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "grpc-client/pom.xml declares the arcadedb-server test dependen... | null |
ArcadeData__arcadedb__2859 | ArcadeData/arcadedb | 2,859 | defect | 1c12f84904c32ec9d2329fdaaaad90b98f6d11c0 | 52d4185f2a20a1cb388d21dec8eb2747fce4d0b3 | fix: resolve NOTUNIQUE index issue with equals operator in large data… | This pull request addresses a critical bug where the `=` operator on NOTUNIQUE string indexes fails to return correct results on large datasets after index creation and compaction. The main fix changes how the index is queried for equality, and a comprehensive regression test is added to ensure the issue is resolved an... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/executor/FetchFromIndexStep.java b/engine/src/main/java/com/arcadedb/query/sql/executor/FetchFromIndexStep.java
index 76a698518d7..ac102aa3eca 100755
--- a/engine/src/main/java/com/arcadedb/query/sql/executor/FetchFromIndexStep.java
+++ b/engine/src/main/java/com... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test's waitForIndexCompaction doesn't wait as intended: its loop skips TypeIndex instances, and since the test creates a TypeIndex the body never runs, so the method returns immediately and the test might not correctly verify behavior after index compaction.", "category": "correctness", "ver... | null |
ArcadeData__arcadedb__2881 | ArcadeData/arcadedb | 2,881 | defect | 0bbd91410602e8f16a7468b3a94cc2be7b1bce54 | 2a6b67de6201fbd55d0fa1b69d54990baa580ccb | refactor: move server path utilities to engine module to eliminate in… | This pull request refactors the server path utility logic to improve modularity and reduce dependencies between the server and integration modules. It introduces a new utility class in the engine module, deprecates the old integration utility, and updates references throughout the codebase. Additionally, it adds new ve... | diff --git a/engine/src/main/java/com/arcadedb/utility/ServerPathUtils.java b/engine/src/main/java/com/arcadedb/utility/ServerPathUtils.java
new file mode 100644
index 00000000000..bcf433a8cc2
--- /dev/null
+++ b/engine/src/main/java/com/arcadedb/utility/ServerPathUtils.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright © 2021-pr... | 9 | 8 | 2 | [{"id": "G0", "claim": "SimpleGloVeTest contains a hardcoded, user-specific absolute file path (/Users/frank/Downloads/...) that will cause the test/application to fail on any machine other than the original author's and makes the build non-portable; the path should be parameterized via a configuration file or a system... | null |
ArcadeData__arcadedb__2904 | ArcadeData/arcadedb | 2,904 | defect | 2c941e6c623349e3156aa4d38f2b70127243eb05 | 0d5567f2f5b14b83f9cc26ffdf9ad7ca57c8b080 | #2903 fix: improve gRPC command result serialization | This pull request primarily focuses on code cleanup, improved logging practices, and minor test and naming corrections. The most significant changes include consistent formatting for logging statements, removal of redundant code, and small test improvements.
**Logging Improvements and Code Cleanup:**
* Reformatte... | diff --git a/console/src/test/java/com/arcadedb/console/ConsoleAsyncInsertTest.java b/console/src/test/java/com/arcadedb/console/ConsoleAsyncInsertTest.java
index 2cf0df8f515..bcee5589d16 100644
--- a/console/src/test/java/com/arcadedb/console/ConsoleAsyncInsertTest.java
+++ b/console/src/test/java/com/arcadedb/console... | 3 | 3 | 2 | [{"id": "G0", "claim": "The refactoring no longer calculates the number of affected records, so the affected variable is always 0; the previous logic for calculating affected records should be restored inside the while loop.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, ... | null |
ArcadeData__arcadedb__2906 | ArcadeData/arcadedb | 2,906 | defect | c5dd04c56dc441f88cd117eb254f8e57ad6b7d3c | 71721c251c5cf23e9a1de7ccb20f6757d376cf60 | chore: refactor vector index tests and improve naming conventions | This pull request mainly updates test method signatures to use the more concise JUnit 5 style, improves assertion usage for better readability and consistency, and introduces a new comprehensive test suite for the vectorNeighbors SQL function. There are also minor improvements to type usage in the vector index implemen... | diff --git a/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java b/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java
index 89845f6765d..0d6be494e79 100644
--- a/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java
+++ b/engine/src/main/java/com/arcadedb/index/vector/LSMVect... | 4 | 4 | 0 | [{"id": "G0", "claim": "In sqlVectorNeighborsWithRawVector the ResultSet is not guaranteed to be closed if an assertion fails; use a try-with-resources block so results.close() is always called.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In ... | null |
ArcadeData__arcadedb__2907 | ArcadeData/arcadedb | 2,907 | defect | a54b2506d08c6d051c5e9df2ddb282aaf5ff97a6 | e1c2aa2c1d1f0bb726fc2bad7d1b688732a0bf13 | Lsm vector fix | ## What does this PR do?
A brief description of the change being made with this pull request.
## Motivation
What inspired you to submit this pull request?
## Related issues
A list of issues either fixed, containing architectural discussions, otherwise relevant
for this Pull Request.
## Additional Not... | diff --git a/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java b/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java
index 89845f6765..4b37c534df 100644
--- a/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java
+++ b/engine/src/main/java/com/arcadedb/index/vector/LSMVector... | 14 | 1 | 0 | [{"id": "G0", "claim": "System.out.println in loadVectorsFromPages and elsewhere in LSMVectorIndex.java should be replaced with LogManager calls for proper log level management and formatting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Numer... | null |
ArcadeData__arcadedb__2916 | ArcadeData/arcadedb | 2,916 | defect | 0e4b0ca87510553acff208cb0dc6e39c8f7ae168 | 895ebf5ad7426e8fbc7612869ebc4df1c58f96cd | #2915 fix: ensure Jvector HNSW graph file is closed and flushed to disk on database close | This pull request addresses critical issues with the persistence and discovery of HNSW graph files in the `LSMVectorIndex` implementation, ensuring that graph data is properly flushed to disk and can be reliably recovered after database restarts. It also adds comprehensive tests to verify these behaviors and improve th... | diff --git a/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java b/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java
index 8871f705048..11e0780f6d1 100644
--- a/engine/src/main/java/com/arcadedb/index/vector/LSMVectorIndex.java
+++ b/engine/src/main/java/com/arcadedb/index/vector/LSMVect... | 2 | 2 | 0 | [{"id": "G0", "claim": "The exception handler in close() should log the full exception stack trace by passing the exception object to the logger instead of only e.getMessage().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test helper delet... | null |
ArcadeData__arcadedb__3051 | ArcadeData/arcadedb | 3,051 | defect | 048c6290b83cf35ec0dd3ced3af7c995f631c0ca | 395e241fe089d20648206d5a3935e16ae49f875d | fix CONTAINSANY index use for lists of embedded documents | ## What does this PR do?
This change copies the cahnges made to `CONTAINS` for index use of lists of embedded documents to `CONTAINSANY`.
## Motivation
Manual tests
## Related issues
https://github.com/ArcadeData/arcadedb/issues/2802
## Checklist
- [X] I have run the build using `mvn clean package`... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/parser/ContainsAnyCondition.java b/engine/src/main/java/com/arcadedb/query/sql/parser/ContainsAnyCondition.java
index c12e25dd8e0..6fe66611357 100644
--- a/engine/src/main/java/com/arcadedb/query/sql/parser/ContainsAnyCondition.java
+++ b/engine/src/main/java/com... | 3 | 3 | 1 | [{"id": "G0", "claim": "The regex `[a-zA-Z_][a-zA-Z0-9_.]*` used to validate the property path is both too restrictive (it rejects quoted identifiers like backtick-quoted names with special characters, so index lookups would fail for such valid paths) and too permissive (it accepts invalid paths with consecutive dots l... | null |
ArcadeData__arcadedb__3119 | ArcadeData/arcadedb | 3,119 | defect | ce4f0124bb2c006f19ca3d8bd53b828cc7476650 | bd8e2c6fc92c18d28d3018c52ecba77780f24ba9 | fix postgres type mapping | ## Summary
Fixes PostgreSQL driver array serialization for primitive arrays (float[], double[], int[], etc.) and adds comprehensive test coverage for ARRAY_OF_FLOATS type.
## Problem
After commit [d58c94d](https://github.com/ArcadeData/arcadedb/commit/d58c94d69eff7fee1aecb4d2c53400f6c14314a0), the Python e2e test `t... | diff --git a/postgresw/src/main/java/com/arcadedb/postgres/PostgresType.java b/postgresw/src/main/java/com/arcadedb/postgres/PostgresType.java
index 566f5d88c6d..cc44e81d032 100644
--- a/postgresw/src/main/java/com/arcadedb/postgres/PostgresType.java
+++ b/postgresw/src/main/java/com/arcadedb/postgres/PostgresType.java... | 2 | 2 | 1 | [{"id": "G0", "claim": "In the parameterized returnArray test, the assertion assertThat(item.getClass()).isInstanceOf(typeToTest.getClass()) always passes and does not verify the items' type; it should be corrected (e.g. assertThat(item).isInstanceOf(typeToTest)) now that the change enables the test for several new typ... | null |
ArcadeData__arcadedb__3248 | ArcadeData/arcadedb | 3,248 | defect | b79468cd634a20b1b9f1976aaffd293ba61921ce | b2d58740e540b0069c543a080b798790993a0414 | feat: added redis access to transient database's global variables | @gramian please check this PR if makes sense.
```
HSET:
- HSET <database> <type> <json>... → Persistent (creates documents in database type)
- HSET <database> <json>... → Transient (stores JSON in globalVariables, second arg starts with {)
- Uses id field from JSON as the key
HGET, HEXISTS:
-... | diff --git a/engine/src/main/java/com/arcadedb/GlobalConfiguration.java b/engine/src/main/java/com/arcadedb/GlobalConfiguration.java
index 1dcc6044121..b418ff9c406 100644
--- a/engine/src/main/java/com/arcadedb/GlobalConfiguration.java
+++ b/engine/src/main/java/com/arcadedb/GlobalConfiguration.java
@@ -515,6 +515,9 @@... | 19 | 19 | 4 | [{"id": "G0", "claim": "The transient-mode hDel is not atomic when deleting multiple keys and its check-then-delete per key has a race condition, so it should be wrapped in a transaction and use the atomic setGlobalVariable return value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i... | null |
ArcadeData__arcadedb__3269 | ArcadeData/arcadedb | 3,269 | defect | 4aa19ba166bff0ec93d794b75dc0d859aaff2eed | 0a4d762d908de1814f29adc3204705275a008f6b | move python cypher test to e2e-python | Summary
Migrated the asyncpg test suite from a standalone script with custom test runner to a modern pytest-b... | diff --git a/e2e-python/README.md b/e2e-python/README.md
index 0f749f5d73f..68560c0c87f 100644
--- a/e2e-python/README.md
+++ b/e2e-python/README.md
@@ -19,3 +19,52 @@ uv pip install -e .
```bash
pytest
```
+
+## asyncpg Tests
+
+Tests for PostgreSQL wire protocol compatibility using the Python asyncpg driver.
+
+##... | 18 | 4 | 2 | [{"id": "G0", "claim": "Tests lack isolation and idempotency: data is only cleaned up after the whole module and inserts use hardcoded IDs (and type creation is not idempotent), so repeated or reordered runs can collide and force loose assertions; add per-test cleanup or unique IDs.", "category": "testing", "verdict": ... | null |
ArcadeData__arcadedb__3286 | ArcadeData/arcadedb | 3,286 | defect | 8c23ab7e10b14bea8ed2c401f0981f8fa95bf69c | 45fa72a5a74ff8a79be72bb5ddfbb1c3fe44a441 | fix: preserve field names for single-element Cypher RETURN over Bolt … | …protocol
When FinalProjectionStep unwraps single-element results (e.g., RETURN n), it stores the vertex directly as an element but loses the field name "n". This caused Bolt protocol to send vertex properties as field names instead of the RETURN clause field name.
Changes:
- FinalProjectionStep: Store projectio... | diff --git a/bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java b/bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java
index 88fbc9edd33..8227fe043a4 100644
--- a/bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java
+++ b/bolt/src/main/java/com/arcadedb/bolt/BoltNetworkExecutor.java
@@ -487... | 7 | 1 | 0 | [{"id": "G0", "claim": "The hardcoded \"_projectionName\" metadata key in BoltNetworkExecutor (lines 806 and 831) and in CypherResultFormatTest should be replaced with the FinalProjectionStep.PROJECTION_NAME_METADATA constant to avoid typo-prone duplication.", "category": "maintainability", "verdict": "supported", "pri... | null |
ArcadeData__arcadedb__3319 | ArcadeData/arcadedb | 3,319 | defect | 491b6736737ca69aa36438cf867984d2e1d05790 | a0e6b00a21f800294a4871485ed4439e2580a83a | #3318 upgrade to 2.3.22.Final + fix | ## What does this PR do?
should fix #3318
| diff --git a/3318-undertow-upgrade.md b/3318-undertow-upgrade.md
new file mode 100644
index 00000000000..ad6f4835cc9
--- /dev/null
+++ b/3318-undertow-upgrade.md
@@ -0,0 +1,144 @@
+# Fix for Issue #3318: HTTP Large Content via Undertow 2.3.22.Final
+
+## Issue Summary
+- **Issue**: [#3318](https://github.com/ArcadeData... | 11 | 4 | 0 | [{"id": "G0", "claim": "The link for CVE-2024-4027 in docs/3318-undertow-upgrade.md incorrectly points to the advisory for CVE-2024-3884 and should be updated to point to the correct advisory GHSA-q23f-9g5j-phrm.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
ArcadeData__arcadedb__3322 | ArcadeData/arcadedb | 3,322 | defect | 0ffaf5bec3c137e59ae529528aae3428797a451d | bfacd0b567880ffd3c1c07d25ec1b0b68aeeba02 | Fix backtick stripping in Cypher map literal keys | ## What does this PR do?
This PR fixes an issue where backticks in map literal keys were not being properly stripped during Cypher query parsing. The `stripBackticks` method in `CypherASTBuilder` is now made static and called when parsing map literals in `CypherExpressionBuilder`, ensuring that backticked keys (e.g., ... | diff --git a/engine/src/main/java/com/arcadedb/query/opencypher/parser/CypherASTBuilder.java b/engine/src/main/java/com/arcadedb/query/opencypher/parser/CypherASTBuilder.java
index 0274fb6022c..70228a8cb49 100644
--- a/engine/src/main/java/com/arcadedb/query/opencypher/parser/CypherASTBuilder.java
+++ b/engine/src/main... | 1 | 1 | 0 | [{"id": "G0", "claim": "The fix is incomplete: `CypherASTBuilder.visitMap()` does not strip backticks from keys in map literals used for node/relationship properties (e.g. in `CREATE`/`MERGE`), and `CypherExpressionBuilder.parseMapProjection()` does not strip backticks from keys in map projections, so backticked identi... | null |
ArcadeData__arcadedb__3323 | ArcadeData/arcadedb | 3,323 | defect | 46c5a3ffed0869966f10a1be5aafdfeb3c0df698 | dddc2be57d2d3b72a797a9f38af0369ef973b37b | #3315 fix: resolve argument expressions correctly in CREATE EDGE stat… | …ements
Fixed property extraction from Result collections in SuffixIdentifier to return unwrapped values instead of Result wrappers. Enhanced CreateEdgesStep to handle projection Results by extracting @rid property when vertex element is unavailable.
This allows CREATE EDGE to properly resolve expressions like:
... | diff --git a/docs/3315-create-edge.md b/docs/3315-create-edge.md
new file mode 100644
index 00000000000..d77e6176ca1
--- /dev/null
+++ b/docs/3315-create-edge.md
@@ -0,0 +1,217 @@
+# Bug Fix: Issue #3315 - CREATE EDGE Expression Resolution
+
+## Issue Summary
+**Title:** SQL: CREATE EDGE fails to resolve argument expre... | 12 | 4 | 1 | [{"id": "G0", "claim": "The Result-unwrapping logic is duplicated in execute(Iterable) and execute(Iterator); extract it into a private helper method called from both.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "r.getElement().get() at lines ... | null |
ArcadeData__arcadedb__3396 | ArcadeData/arcadedb | 3,396 | defect | 4056f198fcf903beddfadbc84cbd52667835d517 | 3410740edf0341124fbd3c00791ad6541382c147 | Add automatic retry for multi-page record reads during concurrent modifications | ## What does this PR do?
Fixes #3393
This PR modifies the `loadMultiPageRecord` method in `LocalBucket` to automatically retry reading multi-page records when concurrent modifications are detected, instead of immediately throwing a `ConcurrentModificationException`. The retry logic respects the `TX_RETRIES` confi... | diff --git a/engine/src/main/java/com/arcadedb/engine/LocalBucket.java b/engine/src/main/java/com/arcadedb/engine/LocalBucket.java
index e8730cc332b..406cfa2f012 100644
--- a/engine/src/main/java/com/arcadedb/engine/LocalBucket.java
+++ b/engine/src/main/java/com/arcadedb/engine/LocalBucket.java
@@ -1231,73 +1231,100 @... | 5 | 4 | 2 | [{"id": "G0", "claim": "In the retry path, getImmutablePage() can return null (page deleted/evicted) and getRecordPositionInPage() can return 0 (record deleted), which would cause an NPE or a read from an incorrect offset; null and zero checks should be added.", "category": "correctness", "verdict": "supported", "prior... | null |
ArcadeData__arcadedb__3406 | ArcadeData/arcadedb | 3,406 | defect | 69dc8d4080b5066e419c3a973114209221bc3201 | 6b0306c167ebb382d857f1ccbf15b039d7a76015 | Cypher : fix profile and explain corrupting returned values | ## What does this PR do?
Fixes #3405
Before this fix, using with cypher EXPLAIN or PROFILE was not storing anything in the dedicated REST fields.
It was storing the profile or explain result in the records fields, mixing up with the data returned from the query.
Using profile was even "leaking" data that ... | diff --git a/engine/src/main/java/com/arcadedb/query/opencypher/executor/CypherExecutionPlan.java b/engine/src/main/java/com/arcadedb/query/opencypher/executor/CypherExecutionPlan.java
index 5dd3ce4f806..3708708db57 100644
--- a/engine/src/main/java/com/arcadedb/query/opencypher/executor/CypherExecutionPlan.java
+++ b/... | 4 | 1 | 0 | [{"id": "G0", "claim": "The Javadoc for the profile() method is misleading because it states that actual query results are discarded and an ExplainResultSet is returned, while the implementation returns the query results in an InternalResultSet with profiling information attached as the execution plan; the documentatio... | null |
ArcadeData__arcadedb__3413 | ArcadeData/arcadedb | 3,413 | defect | 1059e4c678027938e3df1215e0cf62b3c3a64bc4 | 77d34543104c1b0b786409a4de7b4316b2c48191 | fix: correct Bolt protocol version encoding, handshake negotiation and skip limit | The v4.4 version constant was incorrectly encoded as 0x00000104 (v4.1)
instead of 0x00000404. The version negotiation also didn't handle the
range field used by modern Neo4j 5.x drivers, causing handshake failures.
| diff --git a/bolt/pom.xml b/bolt/pom.xml
index 79b119bfd3f..915a323503d 100644
--- a/bolt/pom.xml
+++ b/bolt/pom.xml
@@ -34,10 +34,6 @@
<name>ArcadeDB BOLT Protocol</name>
<description>Neo4j BOLT wire protocol implementation for ArcadeDB</description>
- <properties>
- <neo4j-driver.version>5.27.0<... | 8 | 3 | 1 | [{"id": "G0", "claim": "Dedicated unit tests for the performHandshake() version-negotiation logic (exact matches, range matching, edge cases, multiple client preferences) should be added before merge.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "On en... | null |
ArcadeData__arcadedb__3482 | ArcadeData/arcadedb | 3,482 | defect | 533c7c52f4a4a347ac8257e69b4736592eecc8c2 | e6afddfb892e9400a4012ed1f66882cc25330995 | fix: edge indexes become invalid when deleting and recreating same edge (#3097) |
In TransactionIndexContext.addIndexKeyLock(), when a unique index entry is deleted (REMOVE) and recreated (ADD) with the same key within the same transaction on the same bucket-level index, the REMOVE entry was silently replaced by a REPLACE entry — losing the old RID. At commit time the old persisted index entry w... | diff --git a/engine/src/main/java/com/arcadedb/database/TransactionIndexContext.java b/engine/src/main/java/com/arcadedb/database/TransactionIndexContext.java
index 279cebcc299..abc08c37b1e 100644
--- a/engine/src/main/java/com/arcadedb/database/TransactionIndexContext.java
+++ b/engine/src/main/java/com/arcadedb/datab... | 9 | 2 | 1 | [{"id": "G0", "claim": "In addIndexKeyLock the oldRid is captured only when the existing entry's operation is REMOVE, so if the existing entry is already a REPLACE (e.g. REMOVE -> ADD -> ADD within one transaction) its oldRid is not propagated to the new REPLACE, losing the original oldRid and leaving stale index entri... | null |
ArcadeData__arcadedb__3534 | ArcadeData/arcadedb | 3,534 | defect | 6292916a772d258aee5c7a96284c5a346414c327 | ff5fab38708909a8164f804ef36d5832348530f0 | fix: prevent incorrect filter pushdown for WHERE predicates with nest… | …ed variable references
The filter pushdown optimization in WhereClause was using a text-based heuristic (collectFromText) to detect referenced variables in InExpression and FunctionCallExpression. This heuristic only found variables followed by a dot (e.g., n.name) but missed bare variable references like b in labe... | diff --git a/engine/src/main/java/com/arcadedb/query/opencypher/ast/WhereClause.java b/engine/src/main/java/com/arcadedb/query/opencypher/ast/WhereClause.java
index 5b70f45cb6..f608a235ff 100644
--- a/engine/src/main/java/com/arcadedb/query/opencypher/ast/WhereClause.java
+++ b/engine/src/main/java/com/arcadedb/query/o... | 7 | 2 | 0 | [{"id": "G0", "claim": "The new ListComprehensionExpression handling collects the comprehension's iteration variable (e.g. x in [x IN n.items | x > 10]) as if it were an external dependency, over-approximating the variable set and preventing valid filter pushdown; scope-aware collection would yield only the truly refer... | null |
ArcadeData__arcadedb__3572 | ArcadeData/arcadedb | 3,572 | defect | 687b972d1f73fa0a07e8c33da22b686f1457b5f6 | 7e667d29ab0a9737ea8dfdb627edd110310e0974 | #3571 fix: accessing internal properties | accessing internal properties (@rid, @type, etc.) on functionon results
In SQLASTBuilder.visitModifier(), property-access modifiers always created a plain Identifier node, even for record attribute tokens like @rid. This caused expressions like inE().@rid to return null because the execution path used document.get(... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/antlr/SQLASTBuilder.java b/engine/src/main/java/com/arcadedb/query/sql/antlr/SQLASTBuilder.java
index ee24f549f7..c035d0df00 100644
--- a/engine/src/main/java/com/arcadedb/query/sql/antlr/SQLASTBuilder.java
+++ b/engine/src/main/java/com/arcadedb/query/sql/antlr/... | 10 | 4 | 1 | [{"id": "G0", "claim": "The unquoted token path in buildSuffixForIdentifier does not check PROPS_ATTR, so .@props as an unquoted suffix may fall through to the isRecordAttributeName fallback and behave inconsistently with @rid — worth checking.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "sco... | null |
ArcadeData__arcadedb__3576 | ArcadeData/arcadedb | 3,576 | defect | edc0be1b010c5692ec8c93c9d22ee89fd89cd4c8 | 6e714869d041b6860db2ec933a16c7667936dc89 | fix: resolve gRPC parallel scan context, channel leaks, and null-db EID issues |
- Initialize DatabaseContext in FetchFromTypeExecutionStep worker threads to fix "Invalid transactional context (different db)" during parallel bucket scans triggered via gRPC queries
- Fix RemoteGrpcServer channel and EventLoopGroup leak by storing the EventLoopGroup as a field and properly shutting it down in cl... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/executor/FetchFromTypeExecutionStep.java b/engine/src/main/java/com/arcadedb/query/sql/executor/FetchFromTypeExecutionStep.java
index 640f10ee3c6..9868c4af09f 100755
--- a/engine/src/main/java/com/arcadedb/query/sql/executor/FetchFromTypeExecutionStep.java
+++ b/... | 4 | 1 | 1 | [{"id": "G0", "claim": "The parallel scan worker threads initialize DatabaseContext via init(db) but never clean it up after the task completes, so thread-local contexts accumulate on reused pool threads and a later init() on the same thread can silently roll back a legitimate existing transaction context.", "category"... | null |
ArcadeData__arcadedb__3579 | ArcadeData/arcadedb | 3,579 | defect | b39992be6db20713d691bbfdccd75b861cedadb8 | 7901d2d99e0dddf0f54bb0ffcfbece5f6f807b1d | fix failing IT tests | ## What does this PR do?
Fixes three issues discovered during IT test investigation:
1. **Fix `ResultInternal.getProperty()` null-vs-absent bug** — When `content` map was non-empty but didn't contain the requested key, it returned `null` instead of falling back to the underlying element. Changed `!content.isEmpty()` ... | diff --git a/engine/src/main/antlr4/com/arcadedb/query/sql/grammar/SQLParser.g4 b/engine/src/main/antlr4/com/arcadedb/query/sql/grammar/SQLParser.g4
index 2eef18951fa..5c7a29110b6 100644
--- a/engine/src/main/antlr4/com/arcadedb/query/sql/grammar/SQLParser.g4
+++ b/engine/src/main/antlr4/com/arcadedb/query/sql/grammar/... | 6 | 2 | 1 | [{"id": "G0", "claim": "In CreateEdgeExecutionPlanner.createExecutionPlan() the $-variable branch calls targetType.getStringValue() before the null guard, so CREATE EDGE BUCKET myBucket FROM x TO y with no type name throws a NullPointerException (noted in the source as a pre-existing bug made reachable by the new synta... | null |
ArcadeData__arcadedb__3582 | ArcadeData/arcadedb | 3,582 | defect | 9959c8225007a6da78808cdcb4acd097cec8027b | b0da19f6bb886d7667428739f1075e1c093177b1 | fix: CONTAINSANY with method call on left-hand side (#3581) | ## Summary
- Fix `ScanWithFilterStep` to set `$current` context variable **before** evaluating the WHERE clause filter, so method calls like `split()` can resolve their parameters
- Fix `ContainsAnyCondition.execute()` to handle Java arrays (e.g., `String[]` returned by `split()`) using `MultiValue.getMultiValueIte... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/executor/ScanWithFilterStep.java b/engine/src/main/java/com/arcadedb/query/sql/executor/ScanWithFilterStep.java
index 795f929785e..d93417466d2 100644
--- a/engine/src/main/java/com/arcadedb/query/sql/executor/ScanWithFilterStep.java
+++ b/engine/src/main/java/com... | 6 | 3 | 0 | [{"id": "G0", "claim": "The nested loop in ContainsAnyCondition.execute() exhausts the left iterator while checking the first right-hand element, so CONTAINSANY with a multi-value right-hand side (e.g. txt.split(' ') CONTAINSANY ['nomatch','te']) can silently fail to match, potentially bypassing filters; reviewers ask ... | null |
ArcadeData__arcadedb__3587 | ArcadeData/arcadedb | 3,587 | defect | 276825421a454c33afaa29293215a9cd99e4412e | c19c3a1a1f6b939c89fe8b3a61326d009e45b2bc | #3585 fix: SQL aggregating projection with count(*) returns nothing on empty type | ## Summary
Fixes #3585
- `SELECT count(*), 2 FROM empty_type` and `SELECT count(*), $x FROM empty_type LET $x = 2` now correctly return 1 row with `count(*) = 0` and the non-aggregate values
- Added `findCountStarItem()` to properly identify count(*) as the sole aggregate even when `aggregateProjection` contains pass... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/executor/GuaranteeEmptyCountStep.java b/engine/src/main/java/com/arcadedb/query/sql/executor/GuaranteeEmptyCountStep.java
index ef3f47ab1cf..b6fc3bdc4e6 100644
--- a/engine/src/main/java/com/arcadedb/query/sql/executor/GuaranteeEmptyCountStep.java
+++ b/engine/sr... | 7 | 3 | 1 | [{"id": "G0", "claim": "The now-unreferenced isCountOnly() method in SelectExecutionPlanner should be removed, since findCountStarItem() replaced its only call site.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The count(*) check in findCountS... | null |
ArcadeData__arcadedb__3589 | ArcadeData/arcadedb | 3,589 | defect | 43f19229dd221eeedeb64499da52079971d364a0 | 9ab1d79d653c2cdb3d94fe6f8accbde008022af2 | #3588 fix: gRPC query and streaming query now propagate the language parameter | ## Summary
Fixes #3588
- Added `string language = 9;` to `ExecuteQueryRequest` proto (additive, backward-compatible)
- Server: `executeQuery()` and all three `streamQuery` modes (`streamCursor`, `streamMaterialized`, `streamPaged`) now use the language from the request instead of hardcoding `"sql"`
- Client: `query()... | diff --git a/docs/plans/2026-03-07-grpc-query-language-support-design.md b/docs/plans/2026-03-07-grpc-query-language-support-design.md
new file mode 100644
index 0000000000..36f1f13551
--- /dev/null
+++ b/docs/plans/2026-03-07-grpc-query-language-support-design.md
@@ -0,0 +1,54 @@
+# gRPC Query Language Support
+
+## P... | 10 | 4 | 3 | [{"id": "G0", "claim": "With the language parameter now propagated, streamPaged's SQL-specific wrapWithSkipLimit wrapper produces a mixed-syntax query that fails for non-SQL languages such as Gremlin or Cypher, so PAGED mode must be restricted to SQL or fall back to another mode.", "category": "correctness", "verdict":... | null |
ArcadeData__arcadedb__3651 | ArcadeData/arcadedb | 3,651 | defect | 76b5cb11ee0de24509c8cb5e93ccf0ca3846eba6 | b19bb98abf026ad847a7295020cec4c67defd909 | test: regression tests for issue #3650 (Bolt WHERE clause params) | ## Summary
- Add comprehensive regression tests for [#3650](https://github.com/ArcadeData/arcadedb/issues/3650) verifying WHERE clause parameter substitution works correctly via both engine API and Bolt protocol
- Existing `parameterInMatchPropertyMap` step 3 tested WHERE clause params with only 1 node, which cannot de... | diff --git a/bolt/src/test/java/com/arcadedb/bolt/BoltProtocolIT.java b/bolt/src/test/java/com/arcadedb/bolt/BoltProtocolIT.java
index 9ec1fef3cd8..883445a8bd5 100644
--- a/bolt/src/test/java/com/arcadedb/bolt/BoltProtocolIT.java
+++ b/bolt/src/test/java/com/arcadedb/bolt/BoltProtocolIT.java
@@ -1338,4 +1338,63 @@ void... | 5 | 2 | 0 | [{"id": "G0", "claim": "The cleanup at the end of BoltProtocolIT#whereClauseParameterFiltering should run in a finally block (and use DETACH DELETE) so WhereParamNode vertices do not leak into the shared test database when an assertion fails.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "... | null |
ArcadeData__arcadedb__3666 | ArcadeData/arcadedb | 3,666 | defect | cb5e508c88660d58a676350116827b52485a48a2 | 2381fe8f4e19364ceaca611d815c7c41b87d8ced | #3664 fix: SQLScript with LET/RETURN no longer throws QueryNotIdempotentException | ## Summary
- Fixes #3664 — read-only SQLScript (LET+SELECT, RETURN) was rejected by the `/query` endpoint with `QueryNotIdempotentException`
- `LetStatement.isIdempotent()` now delegates to its sub-statement (so `LET $x = (SELECT ...)` is idempotent, `LET $x = (INSERT ...)` is not); expression-only LETs return `true`
-... | diff --git a/3664-sqlscript-querynotidempotentexception.md b/3664-sqlscript-querynotidempotentexception.md
new file mode 100644
index 0000000000..c441e50237
--- /dev/null
+++ b/3664-sqlscript-querynotidempotentexception.md
@@ -0,0 +1,48 @@
+# Fix: SQLScript QueryNotIdempotentException (#3664)
+
+## Problem
+
+A SQLScri... | 4 | 2 | 0 | [{"id": "G0", "claim": "Use braces for the single-line `if` in LetStatement.isIdempotent() for improved code clarity and robustness against future modifications.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Claude Code work-plan document 366... | null |
ArcadeData__arcadedb__3680 | ArcadeData/arcadedb | 3,680 | defect | ca9db5ac974354ca1131a425e4aa57d6209cd168 | d113ac25f143251d4077260f19ba8528fabdf822 | #3678 feat(grpc): add GraphBatchLoad RPC for bulk graph loading | ## Summary
- Adds a new `GraphBatchLoad` client-streaming gRPC RPC that mirrors the HTTP `POST /api/v1/batch/{database}` endpoint (issue #3675)
- Introduces dedicated proto messages: `GraphBatchOptions`, `GraphBatchRecord`, `GraphBatchChunk`, `GraphBatchResult`
- Supports streaming vertices and edges with temporary ID... | diff --git a/grpc/src/main/proto/arcadedb-server.proto b/grpc/src/main/proto/arcadedb-server.proto
index 7b26c2ffcc7..07c65f99e34 100644
--- a/grpc/src/main/proto/arcadedb-server.proto
+++ b/grpc/src/main/proto/arcadedb-server.proto
@@ -174,6 +174,9 @@ service ArcadeDbService {
rpc BeginTransaction(BeginTransactionR... | 35 | 16 | 4 | [{"id": "G0", "claim": "Proto3 boolean fields default to false, so a client that sends any GraphBatchOptions but omits parallel_flush/pre_allocate_edge_chunks/bidirectional silently disables those features even though the proto documents them as defaulting to true.", "category": "correctness", "verdict": "supported", "... | null |
ArcadeData__arcadedb__3736 | ArcadeData/arcadedb | 3,736 | defect | 85719a2697fac54da61cc66d7f18ee40bffb9be2 | 8a318c7c0453990954461761dba5dad783bebf90 | fix: arithmetic operations on LET variables in SQLScript | Extracted scalar values from List<Result> (the way LET variables store subquery results) in MathExpression.extractScalarFromResultSet to support arithmetic operations like + 1.
Fixes failures in BatchTest.
## What does this PR do?
A brief description of the change being made with this pull request.
## Moti... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/parser/MathExpression.java b/engine/src/main/java/com/arcadedb/query/sql/parser/MathExpression.java
index ee8315a3039..a26709b3bb3 100755
--- a/engine/src/main/java/com/arcadedb/query/sql/parser/MathExpression.java
+++ b/engine/src/main/java/com/arcadedb/query/sq... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new List-handling block should be simplified by combining the first two if conditions and extracting the property name into a local variable for consistency with the ResultSet branch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
ArcadeData__arcadedb__3762 | ArcadeData/arcadedb | 3,762 | defect | 4b313120b301b7b248fde4485edafe0a011831e2 | a2febb4d0caa2b0575fadb2d8376dfe42de80972 | #3761 fix: Cypher WITH *, extra AS alias dropped extra items | ## Summary
Fixes #3761 — `WITH *, expr AS alias` threw "Error parsing OpenCypher query" because the alias was silently dropped during AST construction.
**Root causes (three locations):**
- `CypherASTBuilder.visitWithClause`: used `if/else` — when `TIMES (*)` was present, the `returnItem()` loop was skipped, so `WITH... | diff --git a/engine/src/main/java/com/arcadedb/query/opencypher/executor/steps/WithStep.java b/engine/src/main/java/com/arcadedb/query/opencypher/executor/steps/WithStep.java
index 29dc1bf67b7..d489f5fc060 100644
--- a/engine/src/main/java/com/arcadedb/query/opencypher/executor/steps/WithStep.java
+++ b/engine/src/main... | 2 | 1 | 1 | [{"id": "G0", "claim": "Calling scope.add(alias) inside the same loop that validates expressions makes an alias visible to later expressions within the same WITH clause, whereas a Cypher alias defined in a WITH clause should only be visible to following clauses.", "category": "correctness", "verdict": "supported", "pri... | null |
ArcadeData__arcadedb__3774 | ArcadeData/arcadedb | 3,774 | defect | a34304d8e2286b3212a870aa97cab7691d81d81b | 8a48070084e873d5f14efe942209b70bfef2aefa | fix: backup concurrency race on Linux - flush thread ignored isSuspended | ## Summary
- `PageManagerFlushThread` never checked `isSuspended()` in its run loop, so the background thread kept writing pages to database files via `FileChannel.write()` while the backup's `FileInputStream.transferTo()` was reading those same files
- On Linux's CFS scheduler this race caused `FullBackupIT.fullBacku... | diff --git a/engine/src/main/java/com/arcadedb/engine/PageManager.java b/engine/src/main/java/com/arcadedb/engine/PageManager.java
index 443f58f16f..dc0f2807b1 100644
--- a/engine/src/main/java/com/arcadedb/engine/PageManager.java
+++ b/engine/src/main/java/com/arcadedb/engine/PageManager.java
@@ -141,7 +141,7 @@ publi... | 8 | 4 | 3 | [{"id": "G0", "claim": "The double `nextPagesToFlush.get()` in the `waitForCurrentFlushToComplete` loop condition can NPE if the flush thread nulls the reference between the two calls, so the result should be captured once in a local variable.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop... | null |
ArcadeData__arcadedb__3778 | ArcadeData/arcadedb | 3,778 | defect | 6964490684b43cabb49ec1446cb231fc4976b413 | 16e3e93b93096d2722b0cd8b8ddcca51fee565bc | fix: ORDER BY CASE WHEN expression fails with NPE on baseExpr.identifier | ## Summary
Fixes #3777
- Added null check for `baseExpr.identifier` in `SQLASTBuilder.visitOrderByItem` - `CASE WHEN` produces a `BaseExpression` with `identifier = null`, causing NPE on `.suffix` access
- Added `expression` field to `OrderByItem` to store complex expressions (CASE WHEN, etc.)
- Updated `OrderByItem.... | diff --git a/engine/src/main/java/com/arcadedb/query/sql/antlr/SQLASTBuilder.java b/engine/src/main/java/com/arcadedb/query/sql/antlr/SQLASTBuilder.java
index 9ba313cdf0d..9c16643348f 100644
--- a/engine/src/main/java/com/arcadedb/query/sql/antlr/SQLASTBuilder.java
+++ b/engine/src/main/java/com/arcadedb/query/sql/antl... | 7 | 2 | 1 | [{"id": "G0", "claim": "refersToParent() checks only alias and modifier, so a CASE WHEN expression in ORDER BY referencing $parent in a subquery context would return a false negative; it should also check expression.refersToParent().", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
ArcadeData__arcadedb__3859 | ArcadeData/arcadedb | 3,859 | defect | 598496bd7a895d84107f1ea3b9b11031f493f0b6 | d3e0b49c27790e31159672d0c78252a5c7c7947c | #3858 fix: OpenCypher aggregation with CASE returns multiple rows | ## Summary
- Fix expression parser mis-parsing `sum(CASE WHEN ... END)` as a bare `CaseExpression` instead of `FunctionCallExpression("sum", [CaseExpression])`, which caused the planner to treat it as a non-aggregation grouping key and split results into multiple rows
- Add text-length guards to `tryParseSpecialFuncti... | diff --git a/engine/src/main/java/com/arcadedb/query/opencypher/parser/CypherExpressionBuilder.java b/engine/src/main/java/com/arcadedb/query/opencypher/parser/CypherExpressionBuilder.java
index ab05161a87e..b6e65bf46f2 100644
--- a/engine/src/main/java/com/arcadedb/query/opencypher/parser/CypherExpressionBuilder.java
... | 5 | 3 | 0 | [{"id": "G0", "claim": "The new CASE length guard should also be applied to the EXISTS and shortestPath recursive searches, which otherwise still mis-parse nested occurrences like count(EXISTS { ... }) or my_func(shortestPath(...)) as just the inner special expression and lose the outer wrapper.", "category": "correctn... | null |
ArcadeData__arcadedb__3945 | ArcadeData/arcadedb | 3,945 | defect | f2039a9f251c733c7fae70746d3b7dc1b2bbfb89 | ff6ad661e8d45020ec8cbc52e707c42f430973df | #3944 fix: unit CALL subquery with UNWIND must not multiply outer rows | Fixes #3944
## Root cause
In `SubqueryStep.executeInnerQuery()`, all inner rows produced by the subquery were collected and returned to the outer query regardless of whether the inner statement had a `RETURN` clause. When `UNWIND` appears inside a unit subquery (no `RETURN`), it multiplies the inner rows, which then ... | diff --git a/engine/src/main/java/com/arcadedb/query/opencypher/executor/steps/SubqueryStep.java b/engine/src/main/java/com/arcadedb/query/opencypher/executor/steps/SubqueryStep.java
index da7055ff6b8..5421ac06602 100644
--- a/engine/src/main/java/com/arcadedb/query/opencypher/executor/steps/SubqueryStep.java
+++ b/eng... | 2 | 1 | 0 | [{"id": "G0", "claim": "The unit subquery path always returns a single output row even when the inner query produces no results, so per Cypher semantics the subquery fails to act as a filter and the outer row is not discarded (unless it is an OPTIONAL CALL).", "category": "correctness", "verdict": "opposed", "priority"... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.