instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apache__curator__266 | apache/curator | 266 | defect | 9383aa3e91b1e01743ec2cff20f5fd68a66b83c1 | 07ad0789782f2c0daadd5cce4aa194f42e24ad13 | CURATOR-408 Handle graceful close of ZookKeeper client waiting for all resources to be released | Add a new close(int timeout) API in order to leverage ZooKeeper#close(timeout) API introduced in ZK 4.5.4-BETA.
Summary of changes:
- bump ZK to 4.5.4-BETA
- add the implementation of the feature
- add a missing license header | diff --git a/curator-client/src/main/java/org/apache/curator/ConnectionState.java b/curator-client/src/main/java/org/apache/curator/ConnectionState.java
index b5af9f2d91..3e24580c74 100644
--- a/curator-client/src/main/java/org/apache/curator/ConnectionState.java
+++ b/curator-client/src/main/java/org/apache/curator/Co... | 5 | 4 | 1 | [{"id": "G0", "claim": "Please rename the new close(int timeout) parameter to `timeoutMs` here and elsewhere.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new close(int) method is missing Javadoc for its `timeout` parameter, and the parame... | null |
apache__curator__278 | apache/curator | 278 | defect | 895015165dca24fb58aa23a1949bed0476761910 | d4a0d95488345bfb0983553bfbfbc40643ac031b | [CURATOR-477] added support for turning off zk watches | In our use case, we use `TreeCache` to get Zk Data periodically. We start `TreeCache` read data and close it. In this use case, The `ZkWatchManager` of `ZooKeeper` class keeps growing for every TreeCache operation because new `TreeNode` objects are created and added there leading to a memory leak. Also since we do not ... | diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/TreeCache.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/TreeCache.java
index 7f8aad7ea9..7bcc8d1f35 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/TreeCache.java... | 2 | 2 | 0 | [{"id": "G0", "claim": "Introduce a maybeWatch() helper in the class (which could also absorb inBackground(this)) and use it throughout instead of repeating the watch-creation conditionals at each call site.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
apache__curator__281 | apache/curator | 281 | defect | 26fcc3cf240656957c813acfa5d31db4b28e70c6 | 8e4dba7a070beaf110267843ba0611ee7cae25fc | [CURATOR-483] Fix path used when re-creating sequential PersistentNode with protection | Would previously result in creation of a second non-sequential znode.
See https://issues.apache.org/jira/browse/CURATOR-483. | diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentNode.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentNode.java
index bdf607cd9f..9c9b527c6c 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/Pers... | 3 | 3 | 1 | [{"id": "G0", "claim": "The pull request should include a unit test that reproduces the problem and verifies the fix.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The nested ternary computing createPath would be cleaner written as if statements.", "ca... | null |
apache__curator__30 | apache/curator | 30 | defect | f5767c8909d25761fcc5ed1a8f462fb8f0533487 | f24e11bdc9ca45e94479b1c6fc981b8b7393f619 | CURATOR-67 defer creation of serializer | Instead of immediately creating a new JSONInstanceSerializer we can
defer until build() is actually called. This lets users specify their
own serializers and avoids issues where there may be version conflicts.
| diff --git a/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/ServiceDiscoveryBuilder.java b/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/ServiceDiscoveryBuilder.java
index ab62004e72..28fc31cc20 100644
--- a/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/ServiceDis... | 2 | 2 | 0 | [{"id": "G0", "claim": "The javadoc stating that the builder will be defaulted with a JsonInstanceSerializer should be moved from the builder() method to the build() method.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new TestServiceDiscove... | null |
apache__curator__301 | apache/curator | 301 | defect | 4251fe328908e5fca37af034fabc190aa452c73f | 73ce867cbfd5b9ea04b20f43e81837881f23277f | [CURATOR-503] Update dependencies in January 2019 | The main motivation for this update is updating Guava from 20.0 to 27.0.1-jre. Between these versions, the implementation of `Maps.newConcurrentMap()` (this method is used in many places in Curator code) was changed and now it returns `ConcurrentHashMap` instead of Guava's own implementation, that was less efficient.
... | diff --git a/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaViolation.java b/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaViolation.java
index 3f8f1d974c..7ae078383d 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaViolation.j... | 1 | 1 | 1 | [{"id": "G0", "claim": "The jdk-9-plus profile added to curator-x-discovery-server/pom.xml should be dropped in favour of a comprehensive Java 11 PR, since Java 9 is not an LTS release.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__curator__303 | apache/curator | 303 | defect | 4251fe328908e5fca37af034fabc190aa452c73f | ea505f54291dc548aca947503630960cd10225d0 | [CURATOR-498] Protected Mode creation can mistake closing session's node causing problems for many recipes such as LeaderLatch | Kudos to user Shay Shimony for his tireless and excellent work tracking this down. There are two problems addressed here: 1) Protected create mode can potentially find a ZNode that is about to be deleted due to an expired session. CreateBuilderImpl now keeps track of the session ID when the create is initiated. If afte... | diff --git a/curator-client/src/main/java/org/apache/curator/utils/InjectSessionExpiration.java b/curator-client/src/main/java/org/apache/curator/utils/InjectSessionExpiration.java
index 996e9a2e1b..caf9cbf3ce 100644
--- a/curator-client/src/main/java/org/apache/curator/utils/InjectSessionExpiration.java
+++ b/curator-... | 4 | 3 | 0 | [{"id": "G0", "claim": "Queuing the event of death (and calling wakeupCnxn) immediately in InjectSessionExpiration is unnecessary because the ConnectionState.process flow will do it soon anyway.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "initi... | null |
apache__curator__320 | apache/curator | 320 | defect | b5eea4cde510d5c957912d89c03d06b2d690defe | b1e6e71bbc01c4d995064f7fd349a1d70d4f6426 | [CURATOR-533] - improve circuit breaking behavior | CURATOR-505 introduced circuit breaking behavior via `CircuitBreakingConnectionStateListener` and `ConnectionStateListenerDecorator`. Elastic has been using it to success but reports that the implementation can be improved. The existing implementation uses a new `CircuitBreaker` for each `ConnectionStateListener` set i... | diff --git a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java
index a5c08ff8da..887a2aa96b 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactor... | 7 | 3 | 1 | [{"id": "G0", "claim": "CircuitBreakingManager.removeListener must remove the listener from both containers instead of adding it to mainContainer.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The method name doNotProxy() is vague and should be som... | null |
apache__curator__334 | apache/curator | 334 | defect | 9129a768b0ad81e22f0bb7df32ff6039b76303de | ed9b1430aef357e739d7ce1a298924d5daf50ad0 | [CURATOR-549] Support ZooKeeper 3.6.0 Persistent Recursive Watchers | See: https://github.com/apache/zookeeper/pull/1106
Support persistent watchers in ZK 3.6+ while maintaining background compatibility with previous versions of ZK. Adds Curator Framework DSL calls to ZooKeeper's `addWatch()` method. Subsequent PRs will add recipes. Both the older Framework and the async Framework now... | diff --git a/curator-client/src/main/java/org/apache/curator/utils/Compatibility.java b/curator-client/src/main/java/org/apache/curator/utils/Compatibility.java
index 1ee230123b..fd98d8825f 100644
--- a/curator-client/src/main/java/org/apache/curator/utils/Compatibility.java
+++ b/curator-client/src/main/java/org/apach... | 8 | 5 | 0 | [{"id": "G0", "claim": "AddWatchBuilder and AddWatchBuilder2 should be merged into one interface rather than kept as two similarly named interfaces.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The addWatch() builder docs should state that it is supporte... | null |
apache__curator__35 | apache/curator | 35 | defect | 6bd0cc3e9fff7a1af186893e051e305f636c0bee | 5398b72f00ccc0f2ea995865fcaf92d73c6c5818 | CURATOR-79 - Modified the 'withProtection' handling, so that any failure | that is not a ConnectionLossException or other KeeperException is
treated the same as a ConnectionLossException. This means that if the
thread gets interrupted, or encounters some sort of other error, during
creation of a protected zNode, it will remove the affected zNode prior
to rethrowing the exception.
Exposed the... | diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
index 3cf23b89dd..3028cd5d07 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.j... | 6 | 6 | 0 | [{"id": "G0", "claim": "The test assertion should use assertFalse(lock.isOwnedByCurrentThread()) instead of assertTrue(!lock.isOwnedByCurrentThread()).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A message should be added to the Assert.fail()... | null |
apache__curator__357 | apache/curator | 357 | defect | f204083e3d1d887971aa6ed34cc8d7f4cd1ecb5e | a1a6d62d82adf3d3f561aa324968bb8d46b00e92 | [CURATOR-525] Fix for Zombie LOST Curator | There is a race whereby the ZooKeeper connection can be healed before Curator is finished processing the new connection state. When this happens the Curator instance becomes a Zombie stuck in the LOST state. This fix is a "hack". ConnectionStateManager will notice that the connection state is LOST but that the Curator ... | diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
index bfe61bf1ad..1abfc281ef 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFramew... | 3 | 3 | 2 | [{"id": "G0", "claim": "The PR's new LOST/isConnected handling was placed inside checkSessionExpiration(), which only runs when sessionExpirationPercent > 0, and the reviewer asks that this gating be changed too so the fix is not limited to that configuration.", "category": "correctness", "verdict": "supported", "prior... | null |
apache__curator__364 | apache/curator | 364 | defect | 192d598f1b53e6f7373f85d54488236046cd5ea2 | 40811e05fb55cb6a051ade18ea3c39c849b1fd7b | CURATOR-568-option-CF-skip-ensemble-tracking | CURATOR-568
Adding ensembleTracker(boolean) and withEnsembleTracker() methods to
CuratorFrameworkFactory.builder() that allows enabling/disabling
ensemble tracking | diff --git a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java
index 7980e1e1fa..37db325e13 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactor... | 2 | 1 | 0 | [{"id": "G0", "claim": "CI fails TestInterProcessMutex.testReentrantSingleLock under JDK 8; the author believes it may be unrelated to this commit and asks someone to take a look.", "category": "testing", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The new Javadoc says \"and... | null |
apache__curator__367 | apache/curator | 367 | defect | 095deaf6e4586bbfa3ccaec498920d174235e0e2 | 11194790e9f34975e45dd14bdd8fd008b22051b1 | CURATOR-574 DiscoveryService fatal error on deserializing an empty byte[] as JSON | see https://issues.apache.org/jira/browse/CURATOR-574 | diff --git a/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceCacheImpl.java b/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/ServiceCacheImpl.java
index ae24fa4513..4178bc5aa4 100644
--- a/curator-x-discovery/src/main/java/org/apache/curator/x/discovery/details/... | 2 | 2 | 2 | [{"id": "G0", "claim": "The root-event filtering should not be done in ServiceCacheImpl: the bug is in the CuratorCache/PathChildrenCache bridge, and forPathChildrenCache should emulate PathChildrenCache's behavior of not reporting on the root (suggested via passing the root down or an IGNORE_ROOT option that CuratorCa... | null |
apache__curator__386 | apache/curator | 386 | defect | c26dd85fc3be8ac591c9d7daf69eedb4d7b45dbb | b54974410c1c900775ffe07425d9d485908ae082 | CURATOR-588 Upgrade ZooKeeper to 3.6.3 | It looks like upgrading to ZK 3.6.3 is not that easy as for 3.6.2 | diff --git a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestFrameworkEdges.java b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestFrameworkEdges.java
index 1fda24870f..7c20bdca6d 100644
--- a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestFrameworkEdge... | 2 | 2 | 2 | [{"id": "G0", "claim": "The pull request accidentally corrupted the pom.xml XML declaration to `e?xml`, which breaks XML parsing and failed the CI build virajjasani reported (`mvn install` failed).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Some... | null |
apache__curator__396 | apache/curator | 396 | defect | c26dd85fc3be8ac591c9d7daf69eedb4d7b45dbb | 258a3cf13a7281217f09b41ed543e804ee572bc4 | CURATOR-609 - ModeledCache attempts to deserialize empty ZNodes on deletion, resulting in exceptions | On event type NODE_REMOVED, an additional check was added to ensure that the ZNode actually contains data before attempting to deserialize it into a model.
If no model is present for the ZNode, the accept callback is not called (as this is not a valid ModeledFramework object).
This is already accounted for with e... | diff --git a/curator-x-async/src/main/java/org/apache/curator/x/async/modeled/details/ModeledCacheImpl.java b/curator-x-async/src/main/java/org/apache/curator/x/async/modeled/details/ModeledCacheImpl.java
index df7200dbcd..350ee72ae4 100644
--- a/curator-x-async/src/main/java/org/apache/curator/x/async/modeled/details/... | 3 | 2 | 2 | [{"id": "G0", "claim": "The change alters behavior: previously accept(ModeledCacheListener.Type.NODE_REMOVED...) would always be called, and after the patch it is skipped when the removed ZNode has no data — is that correct?", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"... | null |
apache__curator__401 | apache/curator | 401 | defect | 137159bb919cb7915eb1ddb3a3dfe369bd2253b9 | f78e6d227058f2044b8b193506d5d864f6e50fa1 | CURATOR-623 - ChildrenCache (used by Queues) didn't have a ConnectionStateListener | `ChildrenCache` (used by Queues) didn't have a `ConnectionStateListener`. Thus, if a long network partition occurred the ZK instance would be recreated losing any set watcher and the ChildrenCache would fail to continue watching changes. Adding a ConnectionStateListener fixes this. | diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/queue/ChildrenCache.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/queue/ChildrenCache.java
index e5c7e8cf86..9e25e8d761 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/queue/Childr... | 3 | 1 | 0 | [{"id": "G0", "claim": "In close(), the connection-state listener should be removed after client.removeWatchers(), in reverse order with start().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sync() failure in the connection-state listener is rethro... | null |
apache__curator__426 | apache/curator | 426 | defect | 0a76a61f112e960c330a3365457776621bb430cc | e227575636b57932c44ea9fb62a2d561bf111cd5 | CURATOR-596: Upgrade ZooKeeper to 3.7.1 | `TestReadOnly` fails due to ZOOKEEPER-3863(apache/zookeeper#1380).
ZOOKEEPER-3863 uses `QuorumPeerConfig.localSessionsEnabled` to toggle
local sessions supports in `ReadOnlyZooKeeperServer`.
This pr populates `QuorumPeerConfig.localSessionsEnabled` and
`QuorumPeerConfig.localSessionsUpgradingEnabled` from syste... | diff --git a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestReadOnly.java b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestReadOnly.java
index 2af98b2637..21a9130a24 100644
--- a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestReadOnly.java
+++ b/curat... | 1 | 1 | 1 | [{"id": "G0", "claim": "A curator-test-zk36 module should be added to run the tests with ZooKeeper 3.6.x, modelled on how curator-test-zk35 does it, to prevent regressions from the 3.7.1 upgrade.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__curator__430 | apache/curator | 430 | defect | 75d3c196cd40745ac8c3cd9040f4043168b704f5 | 99a9009eb77fe2f297e4f6a1a41b4cea8d3a3809 | CURATOR-644. CURATOR-645. Fix livelock in LeaderLatch | See also:
* https://issues.apache.org/jira/browse/CURATOR-644
* https://issues.apache.org/jira/browse/CURATOR-645
## Livelock in details
Here we have two race conditions to cause livelock:
Case 1. Suppose there are two participants, p0 and p1:
T0. p1 is going to watch on preceding node belongs to p0.
T... | diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java
index 5d1c249b08..be78a72d24 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderL... | 4 | 2 | 0 | [{"id": "G1", "claim": "The fixes for CURATOR-644 and CURATOR-645 should be split into two separate pull requests instead of being handled in a single PR.", "category": "process", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The remaining if (client.getConnectionStateErrorPol... | null |
apache__curator__460 | apache/curator | 460 | defect | 780c2422658b751bfc54ff0ad193e0317e40a2b4 | 077ce3c02d198389de2683f089267c8399f974c4 | CURATOR-593: Append chroot for EnsembleProvider::setConnectionString in EnsembleTracker | Curator uses `EnsembleProvider::getConnectionString` as connection string to `ZooKeeper`. `EnsembleTracker` subscribes to config node to construct up to date connection string for `EnsembleProvider`. This is great.
But, currently, `EnsembleTracker` omits chroot part of connection string which could cause curator loc... | diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/EnsembleTracker.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/EnsembleTracker.java
index 82ba6e2fc6..f7b99f8f27 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/imps/EnsembleTracker.java
++... | 4 | 2 | 0 | [{"id": "G0", "claim": "The new test's byte-array assertion should be simplified to AssertJ's assertThat(...).isEqualTo(\"deadbeef\") as suggested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The indexOf('/') check perhaps should be `== 0`, s... | null |
apache__curator__461 | apache/curator | 461 | defect | 447878f43b86a272b73a0732e88180c93d59ca1c | 4bd9c6dbb6ad356c23998a27f685d230c381068f | CURATOR-672. Ensure JDK 17 support | https://issues.apache.org/jira/browse/CURATOR-672
Ref -
* https://github.com/apache/curator/pull/410 | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 62fc4bdf2c..e7678802b5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -41,7 +41,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- java: [8, 11]
+ java: [8, 11, 17]
env:
GRADLE_ENTER... | 1 | 1 | 0 | [{"id": "G0", "claim": "The wrapper's distributionUrl should be bumped from Maven 3.9.0 to 3.9.1, the newest patch release, which fixes the connection-related issues MNG-7708 and MNG-7721.", "category": "maintenance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__curator__464 | apache/curator | 464 | defect | 4221604facf2447f4ef7789842ac0b8c4a9d4763 | f574a1e8d8f6becdfa4afbc81ff784046b68d8e4 | CURATOR-673: Complete BackgroundCallback if CuratorFramework got closed | Previously, if curator framework is closed while there are background operations, these operations are dropped with no dedicated events.
It is hard for blocking clients to stop waiting after framework closed. `CuratorListener` seems like a circumvent. But apparently, it is hard and I don't think this is by design.
... | diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
index 3c02a3cd38..85d88bf64b 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFramew... | 6 | 3 | 2 | [{"id": "G0", "claim": "closeOperation should send result code 0 instead of SESSIONEXPIRED in the CLOSING event, at least for listeners.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "queueOperation should use the isStarted() helper instead of comparing ... | null |
apache__curator__478 | apache/curator | 478 | defect | 72beebc504d90338ded9a68ae0f6b79f5c8986fd | 74deeb702dfa7594f3a0255fc8c11d4459bae2a4 | CURATOR-688. SharedCount will be never updated successful when version of ZNode is overflow. | I met one issue which will never update znode value successfully when integer overflow (-2147483648) of znode data version using curator to invoke SharedCount#trySetCount(VersionedValue<Integer>, int).
After dig the limitation logic and found that here could be the root cause.
https://github.com/apache/curator/blob... | diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/shared/SharedValue.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/shared/SharedValue.java
index 50e50edd0..e5e16927b 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/shared/SharedVal... | 10 | 4 | 3 | [{"id": "G0", "claim": "eolivelli asks what happens once the new condition is reached — whether the system gets stuck — and, since version is constant within the call, suggests moving the check to an early exit at the beginning of updateValue.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "... | null |
apache__curator__508 | apache/curator | 508 | defect | 07583f8d2cd562e19ddcbf89d5deec902e55214b | cd03c72a39fc569e8e33934f26d772831aef0bfd | CURATOR-710: Fix leaking watch in EnsembleTracker | CURATOR-667(#474) fixes asynchronous event path for `getConfig` to
"/zookeeper/config" by using `CuratorFramework::usingNamespace(null)` to
fetch data.
It causes watcher not registering to possible `WatcherRemovalManager`,
so leaking in `WatcherRemoveCuratorFramework::removeWatchers`.
| diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/GetConfigBuilderImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/GetConfigBuilderImpl.java
index 91f20d4d3..54ae6f571 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/imps/GetConfigBuilde... | 1 | 1 | 1 | [{"id": "G0", "claim": "The mutable `watcherRemovalManager` field and `setWatcherRemovalManager` setter the PR adds to `Watching` seem redundant with `client.getWatcherRemovalManager()` (the constructors already set it), so the reviewer asks when the field can differ, suggests merging the setter into the constructor or... | null |
apache__curator__512 | apache/curator | 512 | defect | ad1979520a923cc6ad3e24fc99a509b36338c5eb | 61f1e56a039060ffe5df398343b565e1691a945e | CURATOR-725: Allow for global compression | https://issues.apache.org/jira/browse/CURATOR-725
Allow users to use a CuratorFramework setting to enable compression on all create/setData/getData requests. When using this flag with a custom `CompressionProvider`, this can easily allow for a filtered compression implementation. | diff --git a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java
index d24b56d64..a5196a378 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.... | 3 | 3 | 2 | [{"id": "G0", "claim": "With global compression enabled there is no per-operation way to opt out of compression, so users would have to override CompressionProvider; kezhuw asks for a per-operation override (and suggests a separate filter abstraction).", "category": "design", "verdict": "supported", "priority": "P1", "... | null |
apache__curator__518 | apache/curator | 518 | defect | 0d6e457d92fec26c0e40b43633881dd509fe5a0a | 5fbb85ccc5bd8ab5ccc2716969fe1d1d9020e3af | CURATOR-728: Not issue ZooKeeper::create if possible in ZkPaths::mkdirs | `ZkPaths::mkdir("/bar/foo")` will not run into `NoAuthException` if
"/bar/foo" exists, and we have `READ` permission to "/bar/foo" but not
`CREATE` permission to "/bar".
| diff --git a/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java b/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java
index 2bc47544e..e251a356e 100644
--- a/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java
+++ b/curator-client/src/main/java/org/apache/curator/utils/ZKPa... | 1 | 1 | 0 | [{"id": "G0", "claim": "Drop the `final` modifier from the `path` parameter of `ZKPaths.mkdirs`, since params are not mutated by default and the modifier is unnecessary.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
apache__curator__520 | apache/curator | 520 | defect | 0d6e457d92fec26c0e40b43633881dd509fe5a0a | c6daf2d55084130f4fde930714c2f5d49ec415c3 | CURATOR-729: Fix PersistentWatcher dead loop after curator closed | The dead loop is multifold:
1. `CuratorFramework::watchers` does not check `CuratorFrameworkState` as `getData` or others do.
2. `PersistentWatcher` loops itself through `reset` in `BackgroundCallback`.
3. Callback in `inBackground(callback).forPath(path)` is invoked synchronously.
This commit enforces `CuratorFr... | diff --git a/curator-framework/src/main/java/org/apache/curator/framework/api/CuratorClosedException.java b/curator-framework/src/main/java/org/apache/curator/framework/api/CuratorClosedException.java
new file mode 100644
index 000000000..cd1746ca7
--- /dev/null
+++ b/curator-framework/src/main/java/org/apache/curator/... | 2 | 1 | 1 | [{"id": "G0", "claim": "In checkState()'s default branch the IllegalStateException message should format the actual `state` value instead of the hard-coded CuratorFrameworkState.STOPPED.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In reset()'s ca... | null |
apache__curator__54 | apache/curator | 54 | defect | ef2ca578648e3ab8bf927ada169614011ec1ff2a | 01a23e9c043277ab80d9f78b8c58b7aab06c902b | CURATOR-166: Allow ZKPaths to build paths with an arbitrary number of children | ZKPaths' makePath currently only accepts one parent and one child nodes.
This changes makePath to have a varargs parameter so it can accept more than one child.
| diff --git a/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java b/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java
index 352bfd6871..300913b559 100644
--- a/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java
+++ b/curator-client/src/main/java/org/apache/curator/utils/ZK... | 2 | 1 | 1 | [{"id": "G0", "claim": "Changing makePath(String, String) to the varargs signature makePath(String, String...) breaks binary compatibility for client code that is not recompiled and adds an extra array allocation for the common two-argument case, so the PR should provide two overloads, makePath(String, String) and make... | null |
apache__curator__57 | apache/curator | 57 | defect | ef2ca578648e3ab8bf927ada169614011ec1ff2a | 915d66f90a12f1f89177cf4acf83d35e65949408 | Added new apis to add additional paths to ChildReaper and a test. | Added new apis to add additional paths to ChildReaper and a test. This change is backward compatible
| diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
index 5f28f82a60..4c254ac04c 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReape... | 2 | 2 | 1 | [{"id": "G0", "claim": "removePath() should return a String or boolean confirming that a path was removed instead of returning void.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's chaining addPath() API does not sufficiently support the use case... | null |
apache__curator__62 | apache/curator | 62 | defect | 7fc3e6507d5bcbb16c696906bed529c23df88e34 | 58328915a6e005bc4171bb866cb2eba4762c3718 | CURATOR-111 - Modified the authorization handling so that the underlying | auth data is stored in a single list. Modified tests to have both a single
auth and multiple auth case.
| diff --git a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java
index ae26f2c92c..314d669706 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactor... | 2 | 2 | 1 | [{"id": "G0", "claim": "The removed getAuthScheme()/getAuthValue() methods should stay and be marked as deprecated so this is not a breaking change, with the old methods returning the first auth or throwing an error if there is more than 1 auth.", "category": "design", "verdict": "supported", "priority": "P1", "scope":... | null |
apache__curator__67 | apache/curator | 67 | defect | 49eb02a04f377a3b9e2da3b3904311ddddf1aa9d | 72aea4a30b36201fe2a673358c1e062d6b5109a7 | CURATOR-173 | Adding the notion of a 'lock schema' to ChildReaper that enables it to reap both the direct children its watching and subnodes of those children. This is necessary with InterProcessSemaphoreV2 as it creates multiple subnodes beneath its lock nodes and otherwise is unreapable with ChildReaper
I'm a little unsure of th... | diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
index 56c56abca4..7935f0b5b1 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReape... | 3 | 2 | 1 | [{"id": "G0", "claim": "cammckenzie asks whether it would be better for each lock implementation to return a reference to a per-instance LockSchema object that the lock could update with any dynamic content, to allow for dynamic change to the schema.", "category": "design", "verdict": "opposed", "priority": "P3", "scop... | null |
apache__curator__93 | apache/curator | 93 | defect | 870b4d51968756aa6cbf82444bcd721c005db884 | cff86ead3385cf9dfd74b966906d9b3213bebf87 | CURATOR-228 - Modified the background callback to explicitly handle t… | …he NOAUTH case. This will now log a warning and set a flag indicating that an auth failure has occured.
| diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
index f50dca48b7..11568c1a0f 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/... | 3 | 1 | 1 | [{"id": "G0", "claim": "Adding a public isAuthFailure() getter for auth issues in this one recipe is overkill - if such access is wanted it should exist for every recipe - and since an auth failure is a client error rather than a Curator bug, logging only seems the correct approach.", "category": "design", "verdict": "... | null |
apache__curator__95 | apache/curator | 95 | defect | 3a4d541a383a1a42c1f605056d75d36da26a76c5 | 7fd4034e30f2ed3690226d2d78bf9f139df8b491 | CURATOR-241: Write updated data on reconnect | PersistentEphemeralNode can be initialised with certain data, then later updated. If the client reconnects, the replacing ephemeral should write the updated data.
| diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
index f50dca48b7..1011ad5eee 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new getData() helper should be private rather than package protected (or, if kept for tests, explicitly marked @VisibleForTesting).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change in setData() to fetch the data via g... | null |
apache__cxf__1721 | apache/cxf | 1,721 | defect | b522d10f506c4e354f9bd924fe1ece57224afa89 | 35de31d956eb8bf5f3e3d8408d578481fdbae2b6 | [CXF-8982] add optional namespace prefix in template | This is a proposal fix for CXF-8982. The request also contains a new test case to assess it works as expected without breaking anything else.
By changing the regexp, the MaskSensitiveHelper supports masking XML element values where the element contains a namespace prefix without changing the semantics or the intention... | diff --git a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/MaskSensitiveHelper.java b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/MaskSensitiveHelper.java
index 062a0e4d4be..285b641c16c 100644
--- a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/MaskSensitiveHelper.java
+++... | 1 | 1 | 1 | [{"id": "G0", "claim": "The characters allowed in an XML namespace name are wider than Java's \\w character class, so the optional namespace-prefix pattern the PR adds does not cover all valid namespace prefixes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__cxf__1962 | apache/cxf | 1,962 | defect | f919a6fc1a0f86ae2b0ec1eb3ca813ca77a5ded0 | 1a64a74dabd6423bd4de468658c02b8b568ceae5 | CXF-9037: NPE when using com.ctc.wstx.returnNullForDefaultNamespace=true | NPE when using com.ctc.wstx.returnNullForDefaultNamespace=true | diff --git a/core/src/main/java/org/apache/cxf/staxutils/StaxSource.java b/core/src/main/java/org/apache/cxf/staxutils/StaxSource.java
index f74058406d8..d6a37e076cc 100644
--- a/core/src/main/java/org/apache/cxf/staxutils/StaxSource.java
+++ b/core/src/main/java/org/apache/cxf/staxutils/StaxSource.java
@@ -142,7 +142,... | 1 | 1 | 1 | [{"id": "G0", "claim": "Instead of skipping the call when nsPrefix is null, startPrefixMapping() should always be called with an empty string in place of a null prefix, just like nsUri above.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__cxf__2048 | apache/cxf | 2,048 | defect | e094bb4e318597c15c53711997aa109d60f3b1cd | f22a3e7e8ec37f2b5136f2962240cf6779b715b4 | CXF-7396: CachedOutputStream doesn't delete temp files | `CachedOutputStream` doesn't delete temp files. it turned out to be very challenging to handle all the edge (and non-edge) cases where `CachedOutputStream`s (or derived) streams stay unclosed. This change does not solve the root cause of the problem but offers at least a mitigation strategy in a shape of `CachedOutput... | diff --git a/core/pom.xml b/core/pom.xml
index a88ab76ea42..210b4942b4e 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -175,6 +175,11 @@
<artifactId>saaj-impl</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.awaitility</groupId>
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add safeguards in DelayedCachedOutputStreamCleaner against a negative (or too small) cleaner delay and against the timer running so often that it thrashes performance.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__cxf__2150 | apache/cxf | 2,150 | defect | 5251e3b7aab69bc106e7b822557d4e2f36ba212a | 92ab2127793eae844bed751222f3d477426322f0 | CXF-9082: Allow to modify sensitive header list | * Fix any sensitive information is printed to the logs
https://issues.apache.org/jira/browse/CXF-9082 | diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
index 012e9f9b493..92740204c59 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/Headers.java
+++ b/rt/transports/http/src/main... | 1 | 1 | 1 | [{"id": "G0", "claim": "Convert the static SENSITIVE_HEADERS list into a contextual message property resolved via MessageUtils.getContextualStrings so it can be overridden per message, and change the internal static methods (toString, logProtocolHeaders) to instance methods or to accept a Message argument.", "category"... | null |
apache__cxf__2467 | apache/cxf | 2,467 | defect | 805eaa78a566e338c23b7ec630e304d0b068e354 | 958fcf7a3a22204f384a815b2438ca826917f2de | CXF-9146 Fix MemoryLeak in HttpClientHttpConduit | If the wrappedStream corresponds to pout then it should be nulled as well. this fixes a memoryleak caused when pout is a PipedOutputStream, as the pipe holds a strong reference to the client thread which must be nulled to avoid MemoryLeaks in class like ThreadLocalClientState, which utilizes the same thread as a key fo... | diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HttpClientHTTPConduit.java b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HttpClientHTTPConduit.java
index baf4b49a3b3..22b28d04834 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HttpClientHTTPCond... | 1 | 1 | 1 | [{"id": "G0", "claim": "The wrappedStream nulling should be done in AbstractWrappedOutputStream::close() right when the stream is closed, and the `wrappedStream == pout` equality check is an unnecessary condition for resetting it to null.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
apache__cxf__2607 | apache/cxf | 2,607 | defect | 80db7d7b37ef74726e544e1d195995dd3fbd8ae4 | c6c2b517a819ebb0ede21a539551719ec1f4cf97 | [CXF-9159]CXF client to support spring boot SSL bundles | The CXF client can wire Spring Boot SSL bundle configuration automatically if Spring Boot SSL bundle available in the configuration and if cxf.client.ssl.enabled property is true(default is false so keep the CXF client behaviour as is). We can select the bundle name per application or per server address match. | diff --git a/integration/spring-boot/autoconfigure/src/main/java/org/apache/cxf/spring/boot/autoconfigure/ssl/CxfClientSslProperties.java b/integration/spring-boot/autoconfigure/src/main/java/org/apache/cxf/spring/boot/autoconfigure/ssl/CxfClientSslProperties.java
new file mode 100644
index 00000000000..5dee573c542
---... | 3 | 3 | 0 | [{"id": "G0", "claim": "The properties model combining a flat props + rules list is confusing; the author suggests mirroring SSL bundles with a list of named CxfClientSslBundle instances.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "The reviewer questi... | null |
apache__cxf__2724 | apache/cxf | 2,724 | defect | e29d744f6224ca1531d5295caab61c7d6a50b5c7 | e887a2e10dd45893d4c25abd67970311133df17b | [CXF-9175] add support for OAuth2 config in swagger UI | - New SwaggerOAuth2Config data class with all properties defined on https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/
- Existing SwaggerUiConfig contains a new field of type SwaggerOAuth2Config, so that OAuth2 can be configured while creating the OpenApiFeature
- While serving swagger-initializer.js ... | diff --git a/rt/rs/description-swagger-ui/src/main/java/org/apache/cxf/jaxrs/swagger/ui/SwaggerUiConfig.java b/rt/rs/description-swagger-ui/src/main/java/org/apache/cxf/jaxrs/swagger/ui/SwaggerUiConfig.java
index 38db5328c73..cc204ef882d 100644
--- a/rt/rs/description-swagger-ui/src/main/java/org/apache/cxf/jaxrs/swagg... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new OAuth2 accessors should be named with the OAuth2 convention (getOAuth2Config, setOAuth2Config, oAuth2Config fluent method, oAuth2Config field) instead of getOAuthConfig/setOAuthConfig/oAuthConfig/oAuthConfig.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco... | null |
apache__cxf__2798 | apache/cxf | 2,798 | defect | 58727eb07018c13e3712ec2f8e94b612e1893e01 | 236437bdc4fa4f49b8f67779217baf4cfa55c387 | CXF-9174: Allow customization of JPA FIQL predicate building | This PR addresses CXF-9174.
It makes doBuildPredicate(...) and doBuildCollectionPredicate(...) protected to allow customization of predicate construction in JPACriteriaQueryVisitor.
A new test demonstrates how a custom visitor can override predicate behavior without duplicating the entire visitor implementation.
... | diff --git a/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitor.java b/rt/rs/extensions/search/src/main/java/org/apache/cxf/jaxrs/ext/search/jpa/AbstractJPATypedQueryVisitor.java
index 37f30867f28..c54d7fa5873 100644
--- a/rt/rs/extensions/search/src/main/java/org/apa... | 4 | 3 | 2 | [{"id": "G0", "claim": "The pull request fails the module's checkstyle gate (85, then 83 reported violations, ultimately two ImportOrder \"Extra separation in import group\" errors caused by blank lines between the jakarta.* and org.apache.* import groups in the new test files), so the build fails and the PR cannot be ... | null |
apache__cxf__2960 | apache/cxf | 2,960 | defect | a67861d2133895de2aa26a8e12b7559115a437ce | f781a0587161ea6862353202a4b2ee32397885f7 | [CXF-9205] Remove SOAP Header attribute duplications to its child el. | The ReadHeadersInterceptor alters the SOAP message’s DOM by copying all attributes from the <S12:Header> element onto each of its child elements. This modification changes the content of signed header elements and therefore invalidates their signatures.
This PR removes the logic that duplicates header attributes ont... | diff --git a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/ReadHeadersInterceptor.java b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/ReadHeadersInterceptor.java
index 02d151ba7a3..e025c4bddcf 100644
--- a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/inte... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add a unit test to ReadHeadersInterceptorTest that uses a SOAP message with attributes on <soap:Header> and asserts the child header elements do not have those parent attributes duplicated onto them, to document the behavior and prevent regressions.", "category": "testing", "verdict": "supported... | null |
apache__cxf__2983 | apache/cxf | 2,983 | defect | 6a7c1b6f24aaac1782e7606517f637b279cb89e9 | b9cde827058ca11a10a6d36f9b8bedda37b0508a | [CXF-9209] UriInfoImpl#getMatchedResourceTemplate support variable Paths | See [CXF-9209](https://issues.apache.org/jira/browse/CXF-9209)
TCK run is passing in TomEE with these changes | diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/UriInfoImpl.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/UriInfoImpl.java
index 93e3b4e288b..628e057e77b 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/UriInfoImpl.java
+++ b/rt/frontend/jaxrs/src/main/jav... | 4 | 3 | 2 | [{"id": "G0", "claim": "getMatchedResourceTemplate captures the part of the URI outside the JAX-RS scope — the base/server address such as /app — so for base address http://localhost:8080/app it returns /app/foo/one/{name:[a-zA-Z][a-zA-Z_0-9]*} instead of the expected /foo/one/{name:[a-zA-Z][a-zA-Z_0-9]*}.", "category"... | null |
apache__cxf__692 | apache/cxf | 692 | defect | af03fccd16e5f412197a525fddaa0f548ae2285f | 3caeb643068ee6a9cafb849deee6bd7bc67f2ed9 | CXF-8227: Failure to comply with JAX-RS spec with ContainerRequestContext and WriterInterceptorContext | For some reasons, the implementation branched off into request / message property holders. If the request was available in the message context, all properties were mapped to request attributes, otherwise to message properties container. In order to preserve the compatibility, the fix still supports request attributes h... | diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/PropertyHolderFactory.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/PropertyHolderFactory.java
index 23be014f307..0a771e80554 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/PropertyHolderFactory.java
+++ b/... | 4 | 3 | 0 | [{"id": "G0", "claim": "The ServletRequestPropertyHolder's request field should be marked final since it is not intended to be changed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The writer interceptor should echo the propagated property und... | null |
apache__datafusion-ballista__1138 | apache/datafusion-ballista | 1,138 | defect | 7947b07dba2ec43254ec91fb6759e5a94d06610c | eac5feb81e0354c09375abb5a1a48d9635dac292 | refactor: SessionBuilder to return Result<_> | # Which issue does this PR close?
Closes None.
# Rationale for this change
Session builder method was returning SessionState, some of the example functions we have would use unwrap() internally.
# What changes are included in this PR?
Change method signature to return Result<SessionState>
# Are ther... | diff --git a/ballista/core/src/utils.rs b/ballista/core/src/utils.rs
index bf75332595..b9c6e01e3a 100644
--- a/ballista/core/src/utils.rs
+++ b/ballista/core/src/utils.rs
@@ -62,12 +62,14 @@ use tonic::codegen::StdError;
use tonic::transport::{Channel, Error, Server};
/// Default session builder using the provided ... | 1 | 1 | 1 | [{"id": "G0", "claim": "default_session_builder should propagate the error from RuntimeEnv::new with `?` instead of calling .unwrap() on it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__datafusion-ballista__1226 | apache/datafusion-ballista | 1,226 | defect | a749d4a9034f54f1c27f4b47424e54ce0f93389d | 6542da7518662e92431067e7c79130ba0e5a21ac | feat: `ClusterState` does not cache session contexts | ... as session context was not cleaned up.
# Which issue does this PR close?
Closes #1220.
# Rationale for this change
- `ClusterState` was keeping HashMap of session_id -> SessionContext which was never cleaned up.
- `ClusterState` will never emit events about accessed or removed `SessionContexts`.
- T... | diff --git a/ballista/client/src/extension.rs b/ballista/client/src/extension.rs
index 89e1c7ce96..54b2123442 100644
--- a/ballista/client/src/extension.rs
+++ b/ballista/client/src/extension.rs
@@ -15,16 +15,10 @@
// specific language governing permissions and limitations
// under the License.
-use ballista_core::... | 1 | 1 | 1 | [{"id": "G0", "claim": "The scheduler's session creation is marked FIXME and passes the placeholder session id '!!! CHANGE ME !!!'; replace it with a proper session id and implement the proper session creation/update logic (or remove the comment once resolved).", "category": "correctness", "verdict": "supported", "prio... | null |
apache__datafusion-ballista__1230 | apache/datafusion-ballista | 1,230 | defect | a749d4a9034f54f1c27f4b47424e54ce0f93389d | de8537c6bfde309e5074f499d33daf2c4a1b2d6f | Add S3 object store support to executor and scheduler | # Which issue does this PR close?
Closes #1205 .
# Rationale for this change
- make easier to use ballista with distributed object store
# What changes are included in this PR?
- scheduler and executors are pre-configured to use S3 store. This can be disabled with `default-features = false` (gated wit... | diff --git a/Cargo.lock b/Cargo.lock
index 07c7a554a0..214dca8daf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -489,9 +489,9 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
[[package]]
name = "aws-config"
-version = "1.5.17"
+version = "1.6.1"
source = "registry+https://github.com/r... | 3 | 3 | 1 | [{"id": "G0", "claim": "Omitting `.with_default_features()` when building the SessionState means Ballista is left without even default UDAFs such as `count` and `avg`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 'extending components' user-gu... | null |
apache__datafusion-ballista__1309 | apache/datafusion-ballista | 1,309 | defect | 3518c1d5a5e312d8b601e4948a057d680f360e1c | 92429c1820b056ce22c9f645a30816a692587aa5 | feat: Support distributed plan in `EXPLAIN` command | # Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
... | diff --git a/Cargo.lock b/Cargo.lock
index a6fdba9075..fcc69a3ffb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -967,6 +967,7 @@ dependencies = [
name = "ballista-core"
version = "49.0.0"
dependencies = [
+ "arrow",
"arrow-flight",
"async-trait",
"aws-config",
diff --git a/ballista/client/tests/context_unsupport... | 5 | 5 | 3 | [{"id": "G0", "claim": "The pull request's `Cargo.lock` is out of date with its dependency changes and needs to be updated and pushed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "Explore using DataFusion's built-in exec nodes (`PlaceholderRowExec`, ... | null |
apache__datafusion-ballista__1337 | apache/datafusion-ballista | 1,337 | defect | 400f818ccd84126ae1733cf6457c592c542d0b63 | 384c4ec0273a387a85b374cc24784f13e8913738 | feat: make gRPC timeout configurations user-configurable | # Which issue does this PR close?
Closes #117
# Rationale for this change
PR #115 introduced gRPC timeout configurations, but these values were hard-coded. This PR extends #115 by making all gRPC timeout values user-configurable through DataFusion's extensible configuration mechanism.
# What changes are include... | diff --git a/ballista/client/tests/context_checks.rs b/ballista/client/tests/context_checks.rs
index ce834bf593..fd405f0f87 100644
--- a/ballista/client/tests/context_checks.rs
+++ b/ballista/client/tests/context_checks.rs
@@ -240,12 +240,12 @@ mod supported {
.await?;
let expected = [
- ... | 4 | 4 | 0 | [{"id": "G0", "claim": "Pass the needed values as individual parameters rather than passing the whole BallistaConfig into the connection/server builders, or derive a dedicated gRPC config struct if there are too many of them.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
apache__datafusion-ballista__1353 | apache/datafusion-ballista | 1,353 | defect | 118327ca424cf14e38e522b7f0af4ed9c6b3c8c3 | 46338d140868929bb3af531ab5219459083e9ab1 | feat: capture more metrics in distributed_query | # Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
... | diff --git a/ballista/client/tests/context_checks.rs b/ballista/client/tests/context_checks.rs
index deba3bc33e..7bc1d00bd2 100644
--- a/ballista/client/tests/context_checks.rs
+++ b/ballista/client/tests/context_checks.rs
@@ -123,6 +123,31 @@ mod supported {
> 0
);
+ // Verify timing... | 2 | 1 | 1 | [{"id": "G0", "claim": "The job_scheduling_in_ms metric should be computed from the server-side SuccessfulJob::queued_at timestamp instead of the client-side Instant::now captured at query submission.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
apache__datafusion-ballista__1478 | apache/datafusion-ballista | 1,478 | defect | debc627353587f523ef2707101d40864699d1a72 | 71944e190a0173a5dd2205ca67c0a731b06da321 | feat: job scheduling with push based job status updates | # Which issue does this PR close?
Closes #1475
# Rationale for this change
Initial implementation will submit job and then pull scheduler for status updates, this comes with the price of 50ms wait time between pulls, which will affect latency of short queries. checking job status also involves lock of few stru... | diff --git a/ballista/client/tests/context_checks.rs b/ballista/client/tests/context_checks.rs
index 908e9c23d1..0faf3b9b7d 100644
--- a/ballista/client/tests/context_checks.rs
+++ b/ballista/client/tests/context_checks.rs
@@ -1047,4 +1047,62 @@ mod supported {
];
assert_batches_eq!(expected, &result)... | 13 | 8 | 2 | [{"id": "G0", "claim": "execute_query_push generates a job_id that is only logged and never used while submit_job generates another one, so only one job_id (the one from submit_job) should be used.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Cons... | null |
apache__datafusion-ballista__1527 | apache/datafusion-ballista | 1,527 | defect | 97a74521de39568d695e4ccab2dfdb50a79e9feb | 0edddcba96ae397107917b1ca4fd164074047498 | feat: remove full path from partition locations | # Which issue does this PR close?
Closes #.
# Rationale for this change
- at the moment full path is used to access shuffle files, having full path in each partition location brings quite overhead.
- absolute path is a bio of security issue, probably low but still
# What changes are included in this PR?
... | diff --git a/ballista/core/proto/ballista.proto b/ballista/core/proto/ballista.proto
index 641aa9aac7..41bb0d8af3 100644
--- a/ballista/core/proto/ballista.proto
+++ b/ballista/core/proto/ballista.proto
@@ -230,9 +230,14 @@ message FetchPartition {
string job_id = 1;
uint32 stage_id = 2;
uint32 partition_id = ... | 19 | 15 | 1 | [{"id": "G0", "claim": "The FetchPartition handler should use the new `is_sort_shuffle` flag instead of sniffing the constructed path with `is_sort_shuffle_output` to decide between sort-shuffle and plain file reading.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id":... | null |
apache__datafusion-ballista__1567 | apache/datafusion-ballista | 1,567 | defect | 320eb977ffa8ef2ab977e2836b633c3ac950203b | 435e139265db5e6a8ab310fed867a377de96d87c | feat: Support `EXPLAIN ANALYZE` in Ballista | # Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
... | diff --git a/ballista/client/tests/context_checks.rs b/ballista/client/tests/context_checks.rs
index 2afa4b9f85..3e8bd59c41 100644
--- a/ballista/client/tests/context_checks.rs
+++ b/ballista/client/tests/context_checks.rs
@@ -25,11 +25,14 @@ mod supported {
};
use ballista_core::config::BallistaConfig;
+ ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The `child` field of `DistributedExplainAnalyzeExec` could be renamed to `query_exec` or a similar clearer name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer dislikes using a `Mutex` for the `job_id` field ... | null |
apache__datafusion-ballista__728 | apache/datafusion-ballista | 728 | defect | 9206bdb2cd8bfd6a01cafdb5a09a37767b2b9488 | ee3a914cc6965cf04049ec808e00531977668c85 | Remove redundant fields in ExecutorManager | # Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
... | diff --git a/ballista/scheduler/scheduler_config_spec.toml b/ballista/scheduler/scheduler_config_spec.toml
index 93ffe4c134..2e7d0d65f3 100644
--- a/ballista/scheduler/scheduler_config_spec.toml
+++ b/ballista/scheduler/scheduler_config_spec.toml
@@ -96,10 +96,10 @@ default = "3600"
doc = "Delayed interval for cleanin... | 1 | 1 | 1 | [{"id": "G0", "claim": "Removing the local in-memory heartbeat cache from ExecutorManager loses functionality that shared-state deployments rely on (e.g. redis state with pub/sub propagating heartbeats), so the caching should not be removed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "in... | null |
apache__datafusion-sqlparser-rs__1337 | apache/datafusion-sqlparser-rs | 1,337 | defect | 17e5c0c1b6c3c52e5ffd0d2caa4aad7bd7d35958 | b58cb880eb81b09f11b82ed5387e3b9340459649 | Add support of table function WITH ORDINALITY modifier for Postgre Parser | This closes #1336 | diff --git a/src/ast/query.rs b/src/ast/query.rs
index 7d2626b2da..b308dc32ef 100644
--- a/src/ast/query.rs
+++ b/src/ast/query.rs
@@ -905,6 +905,10 @@ pub enum TableFactor {
/// Optional version qualifier to facilitate table time-travel, as
/// supported by BigQuery and MSSQL.
version: Optio... | 3 | 3 | 2 | [{"id": "G0", "claim": "Hardcoding the supported dialects (PostgreSqlDialect|GenericDialect) limits usability for postgres-derived dialects; the check should be removed or the dialect trait extended instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
apache__datafusion-sqlparser-rs__1374 | apache/datafusion-sqlparser-rs | 1,374 | defect | 1e209d87415a5adfedccac8cee3e2860122e4acb | d4a78f2b87866b1f7e1da552c0628f5a9fd104f2 | supporting snowflake extract syntax | Closes #1373 | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index e0c929a9dd..0c30829451 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -477,6 +477,15 @@ pub enum CastKind {
DoubleColon,
}
+/// `EXTRACT` syntax types.
+#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
+#[cfg_attr(feature = "serde", derive(Ser... | 2 | 2 | 1 | [{"id": "G0", "claim": "The comma syntax of EXTRACT is parsed for all dialects while the functionality is intended for Snowflake, so a dialect_of check should be added here (or the test moved to common.rs to cover all dialects).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
apache__datafusion-sqlparser-rs__1413 | apache/datafusion-sqlparser-rs | 1,413 | defect | 1bed87a8ea2c5d92f8a45ece093be8c0726d6963 | a19fba7326c98b2b984d2325ec5a5b9fed1bc48e | Fix Hive table comment should be after table column definitions | For the documentation, please refer to:
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-CreateTable
This closes #1395 | diff --git a/src/ast/dml.rs b/src/ast/dml.rs
index 884b378db7..c0e58e21ad 100644
--- a/src/ast/dml.rs
+++ b/src/ast/dml.rs
@@ -226,6 +226,13 @@ impl Display for CreateTable {
// PostgreSQL allows `CREATE TABLE t ();`, but requires empty parens
write!(f, " ()")?;
}
+
+ // Hive t... | 3 | 2 | 0 | [{"id": "G0", "claim": "Questions whether it is correct to switch the table-comment parsing to being guarded on the Hive dialect, since other dialects parsed it there previously.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The added comment 'For Hi... | null |
apache__datafusion-sqlparser-rs__1426 | apache/datafusion-sqlparser-rs | 1,426 | defect | b9f67847146658aa7a01e39f69ce87d3852e2589 | 938e65a653bd94d6baaafbc8d8ddfd634a24b1bf | feat: support explain options | support `EXPLAIN [ ( option [, ...] ) ] statement`
close #1425 | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 6c851906c7..720a279be8 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -3027,6 +3027,8 @@ pub enum Statement {
statement: Box<Statement>,
/// Optional output format of explain
format: Option<AnalyzeFormat>,
+ /// Postgres style uti... | 6 | 6 | 1 | [{"id": "G0", "claim": "The new options field is unclear from its name and type signature; include an example of the syntax in the doc comment and represent the (Ident, Option<String>) pair as a named struct.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
apache__datafusion-sqlparser-rs__1602 | apache/datafusion-sqlparser-rs | 1,602 | defect | 310882862147ad7ca43320da049a718c9a4538b0 | 2bf503f9349e13a038ba6471eb460809d21b0e6f | Add support for BigQuery `ANY TYPE` data type | As referenced in #1601 , here is a PR, with a test, that verifies correct parsing of BigQuery User-defined functions using templated SQL parameters (what a mouthful :D).
More docs on the actual feature/functionality in BQ can be found here: https://cloud.google.com/bigquery/docs/user-defined-functions
Thanks in ... | diff --git a/src/ast/data_type.rs b/src/ast/data_type.rs
index 5b0239e171..b53b8f0d21 100644
--- a/src/ast/data_type.rs
+++ b/src/ast/data_type.rs
@@ -373,6 +373,10 @@ pub enum DataType {
///
/// [postgresql]: https://www.postgresql.org/docs/current/plpgsql-trigger.html
Trigger,
+ /// Any data type, u... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `Keyword::ANY` match arm should be guarded with `self.peek_keyword(Keyword::TYPE)` so that bare `ANY` does not conflict with a custom data type that happens to be called `ANY`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"... | null |
apache__datafusion-sqlparser-rs__1679 | apache/datafusion-sqlparser-rs | 1,679 | defect | c7c0de6551e09d897d42d86a7324b4b2051feb2f | caf1604522509fff02e2e7877252569d2db978ad | Make TypedString preserve quote style | Fixes #1673. This is a breaking change.
TypedString contained a `String` without any knowledge of the used quote style. The parser used `parse_literal_string` to construct this, which doesn't support any quote styles other than single or double quotes. Namely, it doesn't support triple quotes from BigQuery, causing ... | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 2fc89e29b9..7d47c55d29 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -874,7 +874,7 @@ pub enum Expr {
/// as well as constants of other types (a non-standard PostgreSQL extension).
TypedString {
data_type: DataType,
- value: String,
+ ... | 6 | 5 | 2 | [{"id": "G0", "claim": "The Into<String> impl for Value panics on non-string variants such as Number, Boolean and Null, and an unwrap function returning Option would be more ergonomic.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Into<String> impl ... | null |
apache__datafusion-sqlparser-rs__1739 | apache/datafusion-sqlparser-rs | 1,739 | defect | 3ace97c0efd46f8128590f88392ac30d3e99feae | b84315a8c39a89e1457024749e67fa844a25e437 | Parse SIGNED INTEGER type in MySQL CAST | MySQL doesn't have the same set of possible CAST types as for e.g. column definitions. For example, it raises a syntax error for `CAST(1 AS INTEGER SIGNED)` and instead expects `CAST(1 AS SIGNED INTEGER)`.
We retain the current somewhat permissive datatype parsing behavior (e.g. allowing `CAST(1 AS BIGINT)` even tho... | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 2b9016d9aa..c18cc5dfa2 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -798,9 +798,15 @@ pub enum Expr {
kind: CastKind,
expr: Box<Expr>,
data_type: DataType,
- // Optional CAST(string_expression AS type FORMAT format_string_expres... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add dedicated DataType variants for the MySQL CAST types instead of marking Expr::Cast with a mysql_style_int flag and reusing BigInt/UnsignedBigInt for SIGNED/UNSIGNED.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The existing ... | null |
apache__datafusion-sqlparser-rs__1757 | apache/datafusion-sqlparser-rs | 1,757 | defect | 6ec5223f50e4056b8f07a61141e7f3e67b25d5e3 | 421381ccf3df9a0ea9cbbb0147b961a787cdb938 | SET with a list of comma separated assignments | Closes #1694
- Minor refactoring of the `parse_set` parser (using match, extracting functions, etc ..)
- Support multiple comma-separated assignments (`SET a = 1, b = 2, ...`) and a new variant to represent the syntax
| diff --git a/src/dialect/mod.rs b/src/dialect/mod.rs
index aeb097cfd0..8d4557e2fe 100644
--- a/src/dialect/mod.rs
+++ b/src/dialect/mod.rs
@@ -399,6 +399,16 @@ pub trait Dialect: Debug + Any {
false
}
+ /// Returns true if the dialect supports multiple `SET` statements
+ /// in a single statement.... | 7 | 6 | 1 | [{"id": "G0", "claim": "The new supports_comma_separated_set_assignments method should probably also return true in GenericDialect, not only in MySqlDialect.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "parse_set should avoid allocating a new String fo... | null |
apache__datafusion-sqlparser-rs__1767 | apache/datafusion-sqlparser-rs | 1,767 | defect | 10cf7c164ee0bae8a71e1d8f0af5851b96465692 | 39c9b2723dd2ebed00830e05467b7b74e346aa86 | Add GLOBAL context/modifier to SET statements | Closes #1694
- Add a `GLOBAL` variant to ContextModifier enum.
- Replace `local: bool` field in `SetVariable` with a `scope: ContextModifier`.
- Convenience impl `From<Option<Keyword>> for ContextModifier`
- Update tests | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 8c4079213a..4e6b635890 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -37,7 +37,7 @@ use serde::{Deserialize, Serialize};
#[cfg(feature = "visitor")]
use sqlparser_derive::{Visit, VisitMut};
-use crate::tokenizer::Span;
+use crate::{keywords::Keyword, tokenize... | 2 | 2 | 0 | [{"id": "G0", "claim": "Instead of the `impl From<Option<Keyword>> for ContextModifier`, which implies any keyword can be turned into a ContextModifier, the conversion logic should live in a regular function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
apache__datafusion-sqlparser-rs__1790 | apache/datafusion-sqlparser-rs | 1,790 | defect | 776b10afe608a88811b807ab795831d55f186ee3 | 89ee390589325e4c6363cdfb4f69fa30a006737f | MSSQL: Add support for functionality `MERGE` output clause | Hey I have added a feature to handle OUTPUT Statements in the end of merge statements, which is used in MS SQL fixes #1789 that I created.
- I've added the OUTPUT Keyword
- I've added a struct in for Output in ast/mod.rs
- I've added an optional Output parameter to the Merge struct in ast/mod.rs
- added functio... | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index f187df995f..ccffb07048 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -3817,6 +3817,7 @@ pub enum Statement {
/// ```
/// [Snowflake](https://docs.snowflake.com/en/sql-reference/sql/merge)
/// [BigQuery](https://cloud.google.com/bigquery/docs/refere... | 12 | 9 | 1 | [{"id": "G0", "claim": "The stray blank line between the /// doc comment and the #[derive] attribute on Output should be removed so the doc comment stays attached.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new struct should be named Outpu... | null |
apache__datafusion-sqlparser-rs__1793 | apache/datafusion-sqlparser-rs | 1,793 | defect | 776b10afe608a88811b807ab795831d55f186ee3 | 58372cfe535473911ed97fedc765361c3c4885b0 | Add support for parenthesized subquery as `IN` predicate | Fixes #1792.
This is my attempt to hack in support with my minimal Rust skills. I stopped when I realized that my change of `InSubquery` to use `SetExpr` for its subquery broke many tests. | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index f187df995f..98ac4428b3 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -724,7 +724,7 @@ pub enum Expr {
/// `[ NOT ] IN (SELECT ...)`
InSubquery {
expr: Box<Expr>,
- subquery: Box<Query>,
+ subquery: Box<SetExpr>,
negated: ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Would it make sense to skip the `supports_in_query_body` dialect flag entirely, since the new `SetExpr` representation is a superset of the old query representation and the parser could always accept the syntax?", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
apache__datafusion-sqlparser-rs__1802 | apache/datafusion-sqlparser-rs | 1,802 | defect | 0d2976d723f083961d5c90ad998073c6f34d2ee0 | 1b8eb0bfe3ea2b2eb83b4f9c75369b59ef734c47 | Add support for MySQL's STRAIGHT_JOIN join operator. | This PR adds support for parsing the MySQL `STRAIGHT_JOIN` join operator.
See https://dev.mysql.com/doc/refman/8.4/en/join.html for reference. | diff --git a/src/ast/query.rs b/src/ast/query.rs
index 1b30dcf172..ed6fdb7136 100644
--- a/src/ast/query.rs
+++ b/src/ast/query.rs
@@ -2157,6 +2157,9 @@ impl fmt::Display for Join {
self.relation,
suffix(constraint)
),
+ JoinOperator::StraightJoin(constraint) =>... | 1 | 1 | 0 | [{"id": "G0", "claim": "The STRAIGHT_JOIN doc comment should include a link to the MySQL documentation for reference.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion-sqlparser-rs__1874 | apache/datafusion-sqlparser-rs | 1,874 | defect | 5327f0ce132e12de71db7d03711397c5ac6c0031 | 6cf531d4951545708a82b208bed8ea596f91a186 | Fix `CASE` expression spans | Previously, a `Expr::Case` implementation of `Spanned` would ignore the `CASE .. END` keywords. ie.
```sql
CASE a WHEN b THEN c ELSE d END
-- ^^^^^^^^^^^^^^^^^^^^^^
-- Only this would be highlighted
```
Because the only stored locations would be those of the `Ident` _inside_ the `CASE` expression.
This... | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 711e580dff..f1fc4760aa 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -967,6 +967,8 @@ pub enum Expr {
/// not `< 0` nor `1, 2, 3` as allowed in a `<simple when clause>` per
/// <https://jakewheat.github.io/sql-overview/sql-2011-foundation-grammar.html#s... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test_case_expr_span test should be moved from tests/sqlparser_common.rs into the test module of src/ast/spans.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion-sqlparser-rs__1908 | apache/datafusion-sqlparser-rs | 1,908 | defect | 1bbc05cdff7952182e2cdafe55091de0f1f7b3ce | 693a432b5ec65d73a062fa9624dec3357e0c9f9f | Postgres: support `ADD CONSTRAINT NOT VALID` and `VALIDATE CONSTRAINT` | closes #1907
Handles creating constraints with `NOT VALID`, as well as `ALTER TABLE table VALIDATE CONSTRAINT constraint` | diff --git a/src/ast/ddl.rs b/src/ast/ddl.rs
index d2863c3a18..5e9a8bc599 100644
--- a/src/ast/ddl.rs
+++ b/src/ast/ddl.rs
@@ -67,8 +67,11 @@ impl fmt::Display for ReplicaIdentity {
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
pub enum Alter... | 1 | 1 | 1 | [{"id": "G0", "claim": "Have the parser always accept `NOT VALID` and `VALIDATE CONSTRAINT` syntax instead of gating it behind new dialect methods, since the syntax does not appear to conflict with other dialects.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__datafusion-sqlparser-rs__1914 | apache/datafusion-sqlparser-rs | 1,914 | defect | 50c605a47138b1602575731c196d04b0d280ad3d | 9d68a5663dcdb0357ee52bc351dd99a5905fbec5 | Support for Postgres `CREATE SERVER` | Closes #1814 | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 19966d21c7..1fecbe75f2 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -3316,6 +3316,18 @@ pub enum Statement {
options: Vec<SecretOption>,
},
/// ```sql
+ /// CREATE SERVER
+ /// ```
+ /// See [PostgreSQL](https://www.postgresql.org/doc... | 5 | 5 | 1 | [{"id": "G0", "claim": "The dialect_of! guard on Keyword::SERVER should be dropped so the parser stays permissive and accepts CREATE SERVER whenever the keyword shows up.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added ServerOption struct ... | null |
apache__datafusion-sqlparser-rs__1927 | apache/datafusion-sqlparser-rs | 1,927 | defect | ed8757f2f0596c3e27b7f878e012bfc4d6da32a2 | d6f51a13a84fb21b9c8ef2839a2b87935b9022a6 | Add support for `NOT NULL` and `NOTNULL` expressions | Fixes #1920 by adding `NOT NULL` generally as an alias for `IS NOT NULL`, (only in `ParserState::Normal`) and adds the non-standard `NOTNULL` keyword supported by DuckDB, SQLite, and Postgres. It also adds a new `ParserState::ColumnDefinition` to avoid incorrectly parsing `NOT NULL` as `IS NOT NULL` in column definiti... | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 425e1fb605..273196e3d9 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -756,6 +756,12 @@ pub enum Expr {
IsNull(Box<Expr>),
/// `IS NOT NULL` operator
IsNotNull(Box<Expr>),
+ /// `NOTNULL` or `NOT NULL` operator
+ NotNull {
+ expr: Box<E... | 20 | 20 | 7 | [{"id": "G0", "claim": "Consider merging the two new dialect methods (supports_not_null and supports_notnull) into one function taking a parameter such as with_space.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new Expr::NotNull field should be in... | null |
apache__datafusion-sqlparser-rs__1928 | apache/datafusion-sqlparser-rs | 1,928 | defect | b0bcc46e227162b4a9147c9c1e0a88bf3e0b5e1f | 60acdc5bb67383ba0e4b3a6291ca6701ab2ec752 | Fix for Postgres regex and like binary operators | Closes #1776
Currently, when parsing expressions with regex and like operators, only literals are supported, while the following syntax is also valid (matching against an array of values using ALL or ANY):
```sql
... where a ~ any(array['x'])
```
or
```sql
select a ~ any(array['x'])
```
| diff --git a/src/parser/mod.rs b/src/parser/mod.rs
index 32f8a97e4f..31b06dbf30 100644
--- a/src/parser/mod.rs
+++ b/src/parser/mod.rs
@@ -3478,10 +3478,18 @@ impl<'a> Parser<'a> {
| BinaryOperator::LtEq
| BinaryOperator::Eq
| BinaryOperator::No... | 1 | 1 | 0 | [{"id": "G0", "claim": "The operators newly allowed before ALL/ANY/SOME in parse_infix should be covered by tests, and tests covering them should be added if they are not already.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion-sqlparser-rs__1939 | apache/datafusion-sqlparser-rs | 1,939 | defect | bc2c4e263d85a2440c87ea56f0c595a458e40fc8 | 7654a49b50aa0d05475901fc145bdf1f8c14dfff | Snowflake create database | https://docs.snowflake.com/en/sql-reference/sql/create-database
Added support for
```sql
CREATE [ OR REPLACE ] [ TRANSIENT ] DATABASE [ IF NOT EXISTS ] <name>
[ CLONE <source_schema>
[ { AT | BEFORE } ( { TIMESTAMP => <timestamp> | OFFSET => <time_difference> | STATEMENT => <id> } ) ]
[ IGN... | diff --git a/src/ast/ddl.rs b/src/ast/ddl.rs
index 51e057840f..d3a1e7f128 100644
--- a/src/ast/ddl.rs
+++ b/src/ast/ddl.rs
@@ -30,11 +30,11 @@ use sqlparser_derive::{Visit, VisitMut};
use crate::ast::value::escape_single_quote_string;
use crate::ast::{
- display_comma_separated, display_separated, ArgMode, Comme... | 7 | 7 | 2 | [{"id": "G0", "claim": "Reuse the existing Statement::CreateDatabase representation (adding the Snowflake parameters to it) instead of adding a dialect-specific CreateSnowflakeDatabase struct to the AST, since the project avoids dialect-specific AST representations.", "category": "design", "verdict": "supported", "prio... | null |
apache__datafusion-sqlparser-rs__1947 | apache/datafusion-sqlparser-rs | 1,947 | defect | 650681422a6f6a075cfa66cfde8a22e7539e96af | 8887b4a69dc9f57583a2424c76558219e4ac2cd6 | Postgres: Support parenthesized `SET` options for `ALTER TABLE` | Closes #1946 | diff --git a/src/ast/ddl.rs b/src/ast/ddl.rs
index 51e057840f..8e4addebbe 100644
--- a/src/ast/ddl.rs
+++ b/src/ast/ddl.rs
@@ -351,6 +351,10 @@ pub enum AlterTableOperation {
ValidateConstraint {
name: Ident,
},
+ /// `SET ( storage_parameter [= value] [, ... ] )`
+ SetStorageParameters {
+ ... | 3 | 3 | 1 | [{"id": "G0", "claim": "Add a link to the PostgreSQL documentation the `SET ( storage_parameter ... )` syntax comes from.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the variant to something generic like `SetOptionsParens { options: Vec<... | null |
apache__datafusion-sqlparser-rs__2001 | apache/datafusion-sqlparser-rs | 2,001 | defect | 60a5c8d42aa97500654b04ab28b4cd5f5de9cfd8 | 61657837af9d31efd48da5835cc0a22ac0afcb78 | Add support for PostgreSQL JSON function 'RETURNING' clauses | Fixes #2000. | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 5b50d020c0..438021c4ae 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -7802,11 +7802,16 @@ pub enum FunctionArgumentClause {
///
/// [`GROUP_CONCAT`]: https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions.html#function_group-concat
Separator(V... | 3 | 3 | 0 | [{"id": "G0", "claim": "Merge the JSON_OBJECT RETURNING test cases covering the same feature into one parse_json_object() test function.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The JsonNullClause doc comment should read \"The `ON NULL` clause for... | null |
apache__datafusion-sqlparser-rs__2079 | apache/datafusion-sqlparser-rs | 2,079 | defect | 67684c84d4c2589356c411ea4917dcf1defcd77c | f922986ea3b1e9fbfb49aabcb728367efa360edd | feat: Add RESET to the base dialect #2078 | This adds support for the RESET statement to the base dialect.
- Closes #2078 | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 176d36545e..f33914f59b 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -4263,6 +4263,14 @@ pub enum Statement {
/// ```
/// [Redshift](https://docs.aws.amazon.com/redshift/latest/dg/r_VACUUM_command.html)
Vacuum(VacuumStatement),
+ /// Restore the... | 6 | 6 | 0 | [{"id": "G0", "claim": "The parser should always accept the RESET statement if it shows up, without gating it behind a supports_reset() dialect capability flag.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "parse_reset should carry a proper doc comment ... | null |
apache__datafusion-sqlparser-rs__2095 | apache/datafusion-sqlparser-rs | 2,095 | defect | 78be8b178b53e5999ebcb27713fb9f05e8ece156 | 886ac0985f496ff11a8a6ce550636e18347c073a | Support PostgreSQL C Functions with Multiple AS Parameters | Enables parsing of PostgreSQL C language functions that specify both object file and link symbol in the `AS` clause.
## Example
```sql
CREATE FUNCTION cas_in(input cstring) RETURNS cas
LANGUAGE c
AS 'MODULE_PATHNAME', 'cas_in_wrapper';
```
Fixes #2093
| diff --git a/src/ast/ddl.rs b/src/ast/ddl.rs
index 286b16a4e1..0053faa3e6 100644
--- a/src/ast/ddl.rs
+++ b/src/ast/ddl.rs
@@ -3094,7 +3094,15 @@ impl fmt::Display for CreateFunction {
write!(f, " REMOTE WITH CONNECTION {remote_connection}")?;
}
if let Some(CreateFunctionBody::AsBeforeOpt... | 4 | 4 | 1 | [{"id": "G0", "claim": "The tuple construction in parse_create_function_body_string can be simplified to Ok(Expr::Tuple(vec![first_expr, self.parse_comma_separated(parse_string_expr)?])).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Storing th... | null |
apache__datafusion-sqlparser-rs__2107 | apache/datafusion-sqlparser-rs | 2,107 | defect | 1b842d3b6a76eadd0a8dc9bfecc8cb1dcd0bd3c0 | 7494433986a5265d7f9a10a6e1a8a13dbfd081f0 | Extract source comments | * Should (partially) resolve #2065 | diff --git a/src/ast/comments.rs b/src/ast/comments.rs
new file mode 100644
index 0000000000..33cefb51d6
--- /dev/null
+++ b/src/ast/comments.rs
@@ -0,0 +1,280 @@
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a... | 4 | 4 | 1 | [{"id": "G0", "claim": "The condition in `Comments::find` should also check `end <= self.0.len()` (per the suggestion) so that the `self.0[start..end]` indexing is always safe.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since the underlying vec ... | null |
apache__datafusion-sqlparser-rs__2127 | apache/datafusion-sqlparser-rs | 2,127 | defect | ca2d333dff851d344ce5b307c6ec4911a707703e | bd9e0a94e63a1e0609880a60a20c08cac73090cc | Add PostgreSQL PARTITION OF syntax support | ## Summary
This PR adds support for PostgreSQL's `CREATE TABLE ... PARTITION OF` syntax for creating child partition tables.
Closes #2042
## Changes
- Added `MODULUS` and `REMAINDER` keywords to `src/keywords.rs`
- Added `ForValues` enum and `PartitionBoundValue` enum to `src/ast/ddl.rs` with Display implementation... | diff --git a/src/ast/ddl.rs b/src/ast/ddl.rs
index 3516c64a1b..20d6db156a 100644
--- a/src/ast/ddl.rs
+++ b/src/ast/ddl.rs
@@ -2688,6 +2688,14 @@ pub struct CreateTable {
/// <https://www.postgresql.org/docs/current/ddl-inherit.html>
/// <https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATE... | 5 | 5 | 0 | [{"id": "G0", "claim": "If possible, skip the dialect check and let the parser accept the PARTITION OF clause whenever it shows up in an input SQL.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment should say \"Parse a single [PartitionBound... | null |
apache__datafusion-sqlparser-rs__2156 | apache/datafusion-sqlparser-rs | 2,156 | defect | 6060a11d1f728d1639f761d3bb90e136911934f9 | 9bff17af559a897e0919f33a81ba010cd6fb13ec | Fix identifier parsing not breaking on the `|>` pipe operator | There's a bug in Pipe SQL parsing with identifiers followed by the `|>` operator.
## Fix
`parse_identifiers` needs to break on `Token::VerticalBarRightAngleBracket` as well, otherwise it continues to consume the following tokens as `Ident` (until one of the other break conditions is encountered).
## Example
... | diff --git a/src/parser/mod.rs b/src/parser/mod.rs
index 149365c477..d61fee8ea4 100644
--- a/src/parser/mod.rs
+++ b/src/parser/mod.rs
@@ -12372,7 +12372,9 @@ impl<'a> Parser<'a> {
Token::Word(w) => {
idents.push(w.clone().into_ident(self.peek_token_ref().span));
}... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pipe-operator tests should drop the custom helper/macro abstractions (the PipeTest helper at S1, later the test_pipe! macro and pipe_dialects()) and instead write the test cases explicitly, like `dialects.verified_stmt(\"SELECT * FROM users |> WHERE id = 1\")`, with dialects constructed expl... | null |
apache__datafusion-sqlparser-rs__2162 | apache/datafusion-sqlparser-rs | 2,162 | defect | 2cf33de1ce6f189d28fa52bff88cf3bbde384cca | 800a4f30a4a1e880e7cb9fc54ec6606ac61919e2 | [MySQL, Oracle] Parse optimizer hints | this should resolve #1995 | diff --git a/src/ast/dml.rs b/src/ast/dml.rs
index 32c023e057..4c36f70599 100644
--- a/src/ast/dml.rs
+++ b/src/ast/dml.rs
@@ -32,8 +32,8 @@ use crate::{
use super::{
display_comma_separated, helpers::attached_token::AttachedToken, query::InputFormatClause,
Assignment, Expr, FromTable, Ident, InsertAliases, ... | 5 | 5 | 1 | [{"id": "G0", "claim": "The parser method should be renamed from `parse_optional_optimizer_hint` to `maybe_parse_optimizer_hint`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The dialect gating should use dialect methods (e.g. `if self.support... | null |
apache__datafusion-sqlparser-rs__2170 | apache/datafusion-sqlparser-rs | 2,170 | defect | 6060a11d1f728d1639f761d3bb90e136911934f9 | aa5494378a20a6b2030314ad05a85cb9dbe4ec4c | Databricks: Add support for `OPTIMIZE`, `PARTITIONED BY`, and `STRUCT` | ## Summary
This PR adds several Databricks Delta Lake SQL syntax features:
### 1. OPTIMIZE statement support
Adds support for the Databricks `OPTIMIZE` statement syntax:
```sql
OPTIMIZE table_name [WHERE predicate] [ZORDER BY (col1, col2, ...)]
```
Reference: https://docs.databricks.com/en/sql/language-manual/delta-... | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index d77186bc77..bdcadce9ea 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -4654,22 +4654,34 @@ pub enum Statement {
/// Legacy copy-style options.
options: Vec<CopyLegacyOption>,
},
+ /// ClickHouse:
/// ```sql
/// OPTIMIZE TABLE [d... | 12 | 12 | 2 | [{"id": "G0", "claim": "The pull request has a clippy issue that should be fixed.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The dialect-specific comment above parse_optimize_table should be skipped so it does not become stale or incomplete if other... | null |
apache__datafusion-sqlparser-rs__2183 | apache/datafusion-sqlparser-rs | 2,183 | defect | 802c7d3e03df900392a009ce60b9f30fd954ac4e | 76574e477ea7d94f02ecbf8e9cb4882106858265 | MySQL: Allow optional constraint name after CONSTRAINT keyword | MySQL allows `CONSTRAINT CHECK (expr)` without a name - the database will auto-generate a constraint name. This is a MySQL extension; the SQL standard requires a name after the CONSTRAINT keyword. See [docs].
Previously, we required an identifier after CONSTRAINT, causing us to interpret CONSTRAINT as a column name ... | diff --git a/src/dialect/generic.rs b/src/dialect/generic.rs
index d460c5237c..bf5d2c429d 100644
--- a/src/dialect/generic.rs
+++ b/src/dialect/generic.rs
@@ -271,4 +271,8 @@ impl Dialect for GenericDialect {
fn supports_select_format(&self) -> bool {
true
}
+
+ fn supports_constraint_keyword_with... | 3 | 3 | 0 | [{"id": "G0", "claim": "The parser should use self.peek_one_of_keywords() instead of chaining four peek_keyword() calls with ||.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test should use all_dialects_where() to select which dialects... | null |
apache__datafusion-sqlparser-rs__2185 | apache/datafusion-sqlparser-rs | 2,185 | defect | c8b7f7cf4281cdfff3e08e9827928662b8be8095 | 0807255674d244dc54c485d68e7bdf5cb6b85e8e | [Oracle] Support hierarchical queries | * this is merely building on top of already existing "connect by" functionality for snowflake :)
* and making the `start with` clause optional [as per docs](https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/Hierarchical-Queries.html) and encountered in the wild | diff --git a/src/ast/query.rs b/src/ast/query.rs
index 08448cabef..3f90f6ae57 100644
--- a/src/ast/query.rs
+++ b/src/ast/query.rs
@@ -374,6 +374,8 @@ pub struct Select {
pub prewhere: Option<Expr>,
/// WHERE
pub selection: Option<Expr>,
+ /// STARTING WITH .. CONNECT BY
+ pub connect_by: Option<Co... | 6 | 6 | 0 | [{"id": "G0", "claim": "The doc comment on the Select.connect_by field reads 'STARTING WITH .. CONNECT BY' but should read 'START WITH .. CONNECT BY' (as later suggested, '[START WITH ..] CONNECT BY ..').", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
apache__datafusion-sqlparser-rs__2187 | apache/datafusion-sqlparser-rs | 2,187 | defect | 3ac567076ce505adb033f08a2044cfe5c3a7b229 | c22ee024b8e428a9f961abf88c18749c5d3af385 | PostgreSQL: Support PostgreSQL ANALYZE with optional table and column | ## Why
ANALYZE, ANALYZE t, and ANALYZE t (col1, col2) all failed because parse_analyze() unconditionally required a table name and didn't handle the PostgreSQL parenthesized column syntax.
## How
Made table_name optional (Option<ObjectName>) in the Analyze struct and added column list parsing after the table ... | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index ce5a67e128..a78cc5298f 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -3325,19 +3325,24 @@ impl Display for ExceptionWhen {
}
}
-/// ANALYZE TABLE statement (Hive-specific)
+/// ANALYZE statement
+///
+/// Supported syntax varies by dialect:
+/// - Hive: `... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a link to the PostgreSQL docs describing the ANALYZE syntax (e.g. https://www.postgresql.org/docs/current/sql-analyze.html) to the dialect-listing doc comment on Analyze.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion-sqlparser-rs__2201 | apache/datafusion-sqlparser-rs | 2,201 | defect | d7f56e8942f5e5ad2949b1a9be5f5b1c9bf1c3cd | d0ed48e0104f3372a611117af2f34bf75a522773 | Fix panic in `SET AUTHORIZATION` parsing when scope modifier is missing | Parsing `SET AUTHORIZATION <value>` without a scope modifier (e.g. `SESSION`, `LOCAL`) causes a panic due to an `.expect()` call on a `None` value in `parse_set`. This was discovered via a fuzz-like input string but is trivially reproducible with any `SET AUTHORIZATION ...` statement that omits the scope keyword.
Th... | diff --git a/src/parser/mod.rs b/src/parser/mod.rs
index 5b1f59900b..5877ab0a04 100644
--- a/src/parser/mod.rs
+++ b/src/parser/mod.rs
@@ -14515,8 +14515,13 @@ impl<'a> Parser<'a> {
let value = self.parse_identifier()?;
SetSessionAuthorizationParamKind::User(value)
};
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The parser should report the missing scope modifier through a helper such as `self.expected_at` rather than a hand-rolled `ok_or_else` ParserError.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There is a simpler test ca... | null |
apache__datafusion-sqlparser-rs__2210 | apache/datafusion-sqlparser-rs | 2,210 | defect | 8e36e8ee85e8d24c3bd6948298a4675e341a1db3 | c89aa7e1a7a163d00adf8c92d45ba716d0f31d26 | MSSQL: Add support for WAITFOR statement | ## Why
MSSQL's WAITFOR statement (DELAY/TIME) was not supported ... | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 601af1bd51..c5c2417695 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -4743,6 +4743,10 @@ pub enum Statement {
///
/// See: <https://learn.microsoft.com/en-us/sql/t-sql/statements/print-transact-sql>
Print(PrintStatement),
+ /// MSSQL `WAITFOR` s... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new WAITFOR tests should also cover the generic syntax by using ms_and_generic() instead of ms() (for the DELAY and TIME tests, the DELAY-with-variable test, and the error-case test).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
apache__datafusion-sqlparser-rs__2213 | apache/datafusion-sqlparser-rs | 2,213 | defect | 8e36e8ee85e8d24c3bd6948298a4675e341a1db3 | 91a677f5667516accf7737c550c8051aea4f4eff | PostgreSQL: Support PRIMARY KEY/UNIQUE USING INDEX | ## Why
PostgreSQL allows promoting an existing unique index to a PRIMARY KEY or UNIQUE table constraint via ALTER TABLE, which was
not supported by the parser.
## How
- Add ConstraintUsingIndex variant to TableConstraint with display, span, and serialization support
- Parse USING INDEX index_name after PRIMA... | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 601af1bd51..4481492bad 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -136,8 +136,8 @@ mod dml;
pub mod helpers;
pub mod table_constraints;
pub use table_constraints::{
- CheckConstraint, ForeignKeyConstraint, FullTextOrSpatialConstraint, IndexConstraint,
- ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PRIMARY KEY USING INDEX parsing block should be pulled out into a reusable `parse_constraint_using_index()` function, and the AST should use two distinct `TableConstraint` variants (`PrimaryKeyUsingIndex` / `UniqueUsingIndex`) instead of a single variant differentiated by an `is_primary_key`... | null |
apache__datafusion-sqlparser-rs__2214 | apache/datafusion-sqlparser-rs | 2,214 | defect | 2ea773a1ad0f18d2577846bb8201c0769734c098 | 8b06631373a8a61682c5787375a88d69bb5181aa | [Oracle] Table alias for INSERTed table | This supports an "AS"-less alias for inserts, as in `INSERT table t ...` ([Oracle](https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/INSERT.html#GUID-903F8043-0254-4EE9-ACC1-CB8AC0AF3423__GUID-AC239E95-0DD5-4F4B-A849-55C87840D0E6) doesn't like the keyword) | diff --git a/src/ast/dml.rs b/src/ast/dml.rs
index f9c8823a22..06e939e1e2 100644
--- a/src/ast/dml.rs
+++ b/src/ast/dml.rs
@@ -31,9 +31,9 @@ use crate::{
use super::{
display_comma_separated, helpers::attached_token::AttachedToken, query::InputFormatClause,
- Assignment, Expr, FromTable, Ident, InsertAliases... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new peek_keyword_one_of helper appears to be identical to the existing peek_one_of_keywords function, duplicating it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Existing test cases may not cover both conditions (s... | null |
apache__datafusion-sqlparser-rs__2216 | apache/datafusion-sqlparser-rs | 2,216 | defect | 8e36e8ee85e8d24c3bd6948298a4675e341a1db3 | 4e2c3acc4aeb5b388761b5e8e501c400dbd5fc41 | Allow custom OptimizerHints | Two orthogonal improvements to optimizer hint parsing:
1. `Option<OptimizerHint>` -> `Vec<OptimizerHint>`: the old Option silently dropped all but the first hint-style comment. Vec preserves all hint comments the parser encounters, letting consumers decide which to use. This is backwards compatible: `optimizer_hint:... | diff --git a/src/ast/dml.rs b/src/ast/dml.rs
index f9c8823a22..a0be916dee 100644
--- a/src/ast/dml.rs
+++ b/src/ast/dml.rs
@@ -43,11 +43,11 @@ use super::{
pub struct Insert {
/// Token for the `INSERT` keyword (or its substitutes)
pub insert_token: AttachedToken,
- /// A query optimizer hint
+ /// Que... | 10 | 9 | 0 | [{"id": "G0", "claim": "extract_hint_prefix_and_text should use str::split_once instead of find('+') with manual slicing to make the function body shorter and leaner.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hint-collection loop can be... | null |
apache__datafusion-sqlparser-rs__2217 | apache/datafusion-sqlparser-rs | 2,217 | defect | 8e36e8ee85e8d24c3bd6948298a4675e341a1db3 | 829d0bf35511a9f631f8d52e14c3b84602e64af4 | Add SETOF support for PostgreSQL function return types | PostgreSQL functions can return sets via `RETURNS SETOF <type>`. This is currently not supported by the parser, which fails when encountering `SETOF` after `RETURNS`.
### Changes
- Add `SETOF` keyword
- Add `DataType::SetOf(Box<DataType>)` variant
- Handle `SETOF` in `parse_data_type_helper()` so any `DataType::SetOf... | diff --git a/src/ast/data_type.rs b/src/ast/data_type.rs
index 285eec5054..4182bc620d 100644
--- a/src/ast/data_type.rs
+++ b/src/ast/data_type.rs
@@ -61,6 +61,11 @@ pub enum DataType {
/// Table columns.
columns: Vec<ColumnDef>,
},
+ /// SETOF type modifier for [PostgreSQL] function return ty... | 3 | 3 | 1 | [{"id": "G0", "claim": "SETOF should be represented as a qualifier around the function return type (e.g. a FunctionReturnType enum wrapping the DataType) rather than as a SetOf DataType variant that is not a valid data type in any dialect.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
apache__datafusion-sqlparser-rs__2228 | apache/datafusion-sqlparser-rs | 2,228 | defect | e81eb14a147f32e68942aea668ab56c1548394b2 | aff9db62d63103edecd91815ca66202d20380cc3 | MSSQL: Add support for OUTPUT clause on INSERT/UPDATE/DELETE | ## Why
MSSQL's OUTPUT clause allows returning inserted/deleted column values from DML statements, but was only supported on MERGE.
## How
- Add output: Option<OutputClause> to Insert, Delete, and Update AST structs with correct mid-statement positioning
- Reserve `OUTPUT` and `VALUES` keywords for table/colum... | diff --git a/src/ast/dml.rs b/src/ast/dml.rs
index a0be916dee..f75a2c6614 100644
--- a/src/ast/dml.rs
+++ b/src/ast/dml.rs
@@ -77,6 +77,8 @@ pub struct Insert {
pub on: Option<OnInsert>,
/// RETURNING
pub returning: Option<Vec<SelectItem>>,
+ /// OUTPUT (MSSQL)
+ pub output: Option<OutputClause>,
... | 3 | 2 | 0 | [{"id": "G0", "claim": "The doc comments on the new `output` fields should include a link to the MSSQL docs describing the OUTPUT clause syntax, to help navigation when folks look at the struct.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The r... | null |
apache__datafusion-sqlparser-rs__2245 | apache/datafusion-sqlparser-rs | 2,245 | defect | bd7f70e82048cab324dba6224fb3dd17757d8477 | 4d80a6b6b21bdc68d9c12b766e7a7c4de509dd60 | Add support for parsing COPY statements from STDIN without a semicolon | This PR fixes PostgreSQL `COPY ... FROM STDIN` parsing when the statement ends at EOF without a trailing semicolon.
This is one of several failure families I have found in the course of the correctness benchmarks I am running based on resources such as the PostgreSQL regression SQL suite.
Before this change, sqlp... | diff --git a/src/parser/mod.rs b/src/parser/mod.rs
index bea566bbe8..d66bca4412 100644
--- a/src/parser/mod.rs
+++ b/src/parser/mod.rs
@@ -11028,8 +11028,12 @@ impl<'a> Parser<'a> {
legacy_options.push(opt);
}
let values = if let CopyTarget::Stdin = target {
- self.expect_token... | 2 | 2 | 0 | [{"id": "G0", "claim": "The variants test should use `verified_stmt` instead of `one_statement_parses_to`, and clarify what distinguishes it from the existing `parse_copy_from_stdin_without_semicolon` test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
apache__datafusion-sqlparser-rs__2248 | apache/datafusion-sqlparser-rs | 2,248 | defect | bd7f70e82048cab324dba6224fb3dd17757d8477 | 25e267c6dca7c6261a9c2d06e993bfbce3b83a19 | PostgreSQL `ALTER FUNCTION` / `ALTER AGGREGATE` | ## What this PR introduces
- Adds parser + AST support for [`ALTER FUNCTION`](https://www.postgresql.org/docs/current/sql-alterfunction.html) and [`ALTER AGGREGATE`](https://www.postgresql.org/docs/current/sql-alteraggregate.html) statements.
- Adds support for operations:
- `RENAME TO`
- `OWNER TO`
- `SET S... | diff --git a/src/ast/ddl.rs b/src/ast/ddl.rs
index 0c4f93e647..9987bfbfe6 100644
--- a/src/ast/ddl.rs
+++ b/src/ast/ddl.rs
@@ -47,10 +47,10 @@ use crate::ast::{
FunctionDeterminismSpecifier, FunctionParallel, FunctionSecurity, HiveDistributionStyle,
HiveFormat, HiveIOFormat, HiveRowFormat, HiveSetLocation, Id... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PR should define the missing words (COST, DEPENDS) as keywords instead of parsing them with the ad-hoc parse_unreserved_keyword helper.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion-sqlparser-rs__2264 | apache/datafusion-sqlparser-rs | 2,264 | defect | 6691f31b753708bd5952cc453b65440d7177a9bb | d41f6b9f523523a34bfb8d1aaa4f4c7225d3242c | Fix STORAGE LIFECYCLE POLICY for snowflake queries | Sample query:
```sql
CREATE TABLE IF NOT EXISTS RAW_KAFKA_NRT_KSQL.RAW_BIE_NRT_BRAZE_ATTRIBUTES_PROD
(
RAW_ID NUMBER(38,0) IDENTITY START 1 INCREMENT 1,
RECORD_METADATA VARIANT
) WITH STORAGE LIFECYCLE POLICY dba.global_settings.raw_kafka_storage_policy_cold_by_date ON (UPDATE_DATETIME);
```
Spec: htt... | diff --git a/src/ast/ddl.rs b/src/ast/ddl.rs
index 895959a3db..d3011a3c7b 100644
--- a/src/ast/ddl.rs
+++ b/src/ast/ddl.rs
@@ -48,9 +48,9 @@ use crate::ast::{
HiveFormat, HiveIOFormat, HiveRowFormat, HiveSetLocation, Ident, InitializeKind,
MySQLColumnPosition, ObjectName, OnCommit, OneOrManyWithParens, Operat... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc comment on the new with_storage_lifecycle_policy field should use backticks around `WITH STORAGE LIFECYCLE POLICY` instead of double quotes, matching the adjacent field's style.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", ... | null |
apache__datafusion-sqlparser-rs__2266 | apache/datafusion-sqlparser-rs | 2,266 | defect | 6691f31b753708bd5952cc453b65440d7177a9bb | 72e5fb4a97eca7d7a0701629fa72817ae2280eac | Fixed CHANGES keyword parsing for snowflake | Query example:
```sql
SELECT a
FROM "PCH_ODS_FIDELIO"."SRC_VW_SYS_ACC_MASTER"
CHANGES (INFORMATION => DEFAULT)
AT (TIMESTAMP => TO_TIMESTAMP_TZ('2026-02-18 11:23:19.660000000'))
END (TIMESTAMP => TO_TIMESTAMP_TZ('2026-02-18 11:38:30.211000000'));
```
Spec: https://docs.snowflake.com/en/sql-referen... | diff --git a/src/ast/query.rs b/src/ast/query.rs
index 440928ed71..d588bbf446 100644
--- a/src/ast/query.rs
+++ b/src/ast/query.rs
@@ -2578,6 +2578,23 @@ pub enum TableVersion {
/// When the table version is defined using a function.
/// For example: `SELECT * FROM tbl AT(TIMESTAMP => '2020-08-14 09:30:00')`
... | 4 | 4 | 0 | [{"id": "G0", "claim": "The doc comment on the new TableVersion variant should backtick the keyword: `CHANGES` instead of CHANGES.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The inline CHANGES parsing logic added to parse_table_version should ... | null |
apache__datafusion-sqlparser-rs__2283 | apache/datafusion-sqlparser-rs | 2,283 | defect | 1097a0d5a6a852737b55f96bd38fba3f2ece9bd0 | 097a9292ba43e0eefd34ce5338a8123f62c06de4 | feat(clickhouse): support PARTITION BY after ORDER BY and ARRAY JOIN | ## Summary
Two ClickHouse dialect improvements:
1. **PARTITION BY after ORDER BY** — ClickHouse CREATE TABLE DDL places PARTITION BY after ORDER BY, which differs from standard SQL. The parser now accepts both orderings when using the ClickHouseDialect or GenericDialect.
2. **ARRAY JOIN support** — Adds \JoinOperato... | diff --git a/src/ast/query.rs b/src/ast/query.rs
index ca74db4405..1436978429 100644
--- a/src/ast/query.rs
+++ b/src/ast/query.rs
@@ -2755,6 +2755,13 @@ impl fmt::Display for Join {
self.relation,
suffix(constraint)
)),
+ JoinOperator::ArrayJoin => f.write_fmt(... | 4 | 4 | 0 | [{"id": "G0", "claim": "The dialect_of!(self is ClickHouseDialect | GenericDialect) condition guarding PARTITION BY after ORDER BY in CREATE TABLE parsing should be converted to a dialect function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The diale... | null |
apache__datafusion-sqlparser-rs__2292 | apache/datafusion-sqlparser-rs | 2,292 | defect | 6f8e7b85c2570bff270989a2dfb93f7c4921e854 | f3c332fc9b0260eccc6cbed06f1657770811e413 | MySQL: Support `SHOW FULL PROCESSLIST` syntax | Currently, parsing the syntax `SHOW FULL PROCESSLIST` with the MySQL dialect results in an error even though it's valid as seen in the documentation. This PR adds support for this syntax to the parser.
This is my first time contributing here, so please let me know if anything needs to be changed.
```rust
let ast... | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index d7a3679a46..bf279bbc62 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -4098,6 +4098,15 @@ pub enum Statement {
show_options: ShowStatementOptions,
},
/// ```sql
+ /// SHOW [FULL] PROCESSLIST
+ /// ```
+ ///
+ /// Note: this is a MySQ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The dialect gate limiting SHOW [FULL] PROCESSLIST to the MySQL and Generic dialects is unnecessary; the parser should be permissive and all dialects should accept this statement.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion-sqlparser-rs__2294 | apache/datafusion-sqlparser-rs | 2,294 | defect | 913cf0e79b31d494eef15b44068f88d786e6fe8d | c7d8c332b566bee0e8cf2286901ef1d28d634348 | Fix COLLATE parsing after compound identifiers | Currently the following valid SQL fails to parse with the MSSQL dialect:
```sql
SELECT t1.a COLLATE Latin1_General_CI_AS FROM t1
```
This PR moves the `COLLATE` parsing within expressions from the end of `parse_prefix` to `parse_subexpr` after `parse_compound_expr`, so that `expr COLLATE collation` is also handled ... | diff --git a/src/parser/mod.rs b/src/parser/mod.rs
index 6282ed3d72..9bc0573de9 100644
--- a/src/parser/mod.rs
+++ b/src/parser/mod.rs
@@ -1394,6 +1394,13 @@ impl<'a> Parser<'a> {
expr = self.parse_compound_expr(expr, vec![])?;
+ if !self.in_column_definition_state() && self.parse_keyword(Keyword::C... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment in src/parser/mod.rs explaining for future developers why the COLLATE parsing code is there.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
apache__datafusion-sqlparser-rs__2303 | apache/datafusion-sqlparser-rs | 2,303 | defect | 073df280024abfba81769242298450324d958228 | fe58eb422ecf38249fa91f4f56dd3c09663d5945 | Redshift: PartiQL AT <index> | Add support for the `AT` keyword in PartiQL that is used during unnesting to retrieve the index of an element in an array.
For example:
```sql
SELECT index, val FROM my_table t, t.my_array val AT index;
``` | diff --git a/src/ast/query.rs b/src/ast/query.rs
index 49ba86f1f7..36e858a929 100644
--- a/src/ast/query.rs
+++ b/src/ast/query.rs
@@ -2527,6 +2527,8 @@ pub struct TableAlias {
pub name: Ident,
/// Optional column aliases declared in parentheses after the table alias.
pub columns: Vec<TableAliasColumnDef... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add a link to the documentation defining the PartiQL `AT <index>` syntax, and ideally an example, to the doc comment on the new `at` field.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Switch the new test to `all_dialect_... | null |
apache__datafusion-sqlparser-rs__2325 | apache/datafusion-sqlparser-rs | 2,325 | defect | 9550e939b8ad1bab5e3f679d43e0c3fea427fbc7 | 084698a840c12d86cb968fd4b89569adede28bab | Databricks: Add support for `UPDATE SET *` and `INSERT *` in MERGE statements | Add parsing support for the Databricks star shorthand syntax in MERGE statements, allowing `UPDATE SET *` and `INSERT *` to reference all columns from the source.
## Syntax
```
[ common_table_expression ]
MERGE [ WITH SCHEMA EVOLUTION ] INTO target_table_name [target_alias]
USING source_table_reference ... | diff --git a/src/ast/dml.rs b/src/ast/dml.rs
index 3e2f7ee09f..416c2dd109 100644
--- a/src/ast/dml.rs
+++ b/src/ast/dml.rs
@@ -649,6 +649,14 @@ pub enum MergeInsertKind {
/// ```
/// [BigQuery](https://cloud.google.com/bigquery/docs/reference/standard-sql/dml-syntax#merge_statement)
Row,
+ /// The ins... | 3 | 3 | 1 | [{"id": "G0", "claim": "Rename `MergeInsertKind::Star` to `Wildcard` for naming consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the `supports_merge_star_syntax` dialect method and let the parser accept the `*` syntax anytime it ... | null |
apache__datafusion-sqlparser-rs__411 | apache/datafusion-sqlparser-rs | 411 | defect | ea0eb1be617635b29d49d712be22a9a568d02366 | 113722efb230072d31b14eb991b947761006f43e | fix: Handle double quotes inside quoted identifiers correctly | This fixes #410 for standard SQL, however I don't know enough about other dialects to know if they
handle this differently. May need more extensive testing as well. | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index 477a22890d..81d98a820d 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -23,7 +23,7 @@ use alloc::{
string::{String, ToString},
vec::Vec,
};
-use core::fmt;
+use core::fmt::{self, Write};
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
... | 3 | 2 | 0 | [{"id": "G0", "claim": "MySQL treats double-quoted `\"...\"` as a string rather than an identifier (unless ANSI_QUOTES), so the behavior this PR encodes for doubled quotes may not match MySQL.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Add a tes... | null |
apache__datafusion-sqlparser-rs__450 | apache/datafusion-sqlparser-rs | 450 | defect | b68e9a380191bf4eac2f1265027b3eba4e829294 | 7a6f54c5d2cc5b95a7e143cb5124a4f117565298 | Support `UPDATE SET FROM` statement | Close #449
This PR adjust the `Update` statement with an additional `from` member, which can hold the contents behind `FROM`.
Since I can only approve this statement is supported in Postgres, currently I only allow `PostgreSqlDialect` to parse `FROM` part. | diff --git a/src/ast/mod.rs b/src/ast/mod.rs
index e01a881d78..9f2e96d039 100644
--- a/src/ast/mod.rs
+++ b/src/ast/mod.rs
@@ -758,6 +758,8 @@ pub enum Statement {
table: TableWithJoins,
/// Column assignments
assignments: Vec<Assignment>,
+ /// Table which provide value to be set
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new test is missing the expected ast and should be updated to assert it instead of only printing.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.