You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/spark/procedures.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -538,9 +538,12 @@ This section introduce all available spark procedures about paimon.
538
538
<li>index_column: the name of the indexed column. Cannot be empty.</li>
539
539
<li>index_type: type of the index to drop, e.g. 'btree'. Cannot be empty.</li>
540
540
<li>partitions: partition filter to limit the partitions from which to drop the index. The comma (",") represents "AND", the semicolon (";") represents "OR". Left empty for all partitions.</li>
541
+
<li>dry_run: when true, return the number of index files that would be dropped without committing any change. Default is false.</li>
Copy file name to clipboardExpand all lines: paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/procedure/DropGlobalIndexProcedure.java
+21-2Lines changed: 21 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,8 @@
41
41
importorg.slf4j.Logger;
42
42
importorg.slf4j.LoggerFactory;
43
43
44
+
importjavax.annotation.Nullable;
45
+
44
46
importjava.util.ArrayList;
45
47
importjava.util.Arrays;
46
48
importjava.util.List;
@@ -71,14 +73,16 @@ public String identifier() {
71
73
@ArgumentHint(
72
74
name = "partitions",
73
75
type = @DataTypeHint("STRING"),
74
-
isOptional = true)
76
+
isOptional = true),
77
+
@ArgumentHint(name = "dry_run", type = @DataTypeHint("BOOLEAN"), isOptional = true)
Copy file name to clipboardExpand all lines: paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/procedure/DropGlobalIndexProcedureITCase.java
+147Lines changed: 147 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,153 @@ public void testDropBtreeGlobalIndex() throws Exception {
Copy file name to clipboardExpand all lines: paimon-spark/paimon-spark-common/src/main/java/org/apache/paimon/spark/procedure/DropGlobalIndexProcedure.java
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -67,12 +67,15 @@ public class DropGlobalIndexProcedure extends BaseProcedure {
Copy file name to clipboardExpand all lines: paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark/procedure/DropGlobalIndexProcedureTest.scala
+50Lines changed: 50 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -63,12 +63,14 @@ class DropGlobalIndexProcedureTest extends PaimonSparkTestBase with StreamTest {
0 commit comments