This is an automated email from the ASF dual-hosted git repository.

pvary pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new f69ed7b7d5 Docs: Fix snapshot_id type in compute stats procedures 
(#18946)
f69ed7b7d5 is described below

commit f69ed7b7d500261cc4ac30bd7c392eeae3cabd6e
Author: chenjian2664 <[email protected]>
AuthorDate: Tue Nov 17 16:30:35 2026 +0800

    Docs: Fix snapshot_id type in compute stats procedures (#18946)
---
 docs/docs/spark-procedures.md | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/docs/docs/spark-procedures.md b/docs/docs/spark-procedures.md
index 00a063eb3b..7482dc8aa2 100644
--- a/docs/docs/spark-procedures.md
+++ b/docs/docs/spark-procedures.md
@@ -977,7 +977,7 @@ The procedure can be optionally configured to compute 
statistics for a specific
 | Argument Name | Required? | Type          | Description                      
   |
 
|---------------|-----------|---------------|-------------------------------------|
 | `table`       | ✔️        | string        | Name of the table                
   |
-| `snapshot_id` |           | string        | Id of the snapshot to collect 
stats |
+| `snapshot_id` |           | long          | Id of the snapshot to collect 
stats |
 | `columns`     |           | array<string> | Columns to collect stats         
   |
 
 #### Output
@@ -993,14 +993,14 @@ Collect statistics of the latest snapshot of table 
`my_table`
 CALL catalog_name.system.compute_table_stats('my_table');
 ```
 
-Collect statistics of the snapshot with id `snap1` of table `my_table`
+Collect statistics of the snapshot with id `1` of table `my_table`
 ```sql
-CALL catalog_name.system.compute_table_stats(table => 'my_table', snapshot_id 
=> 'snap1' );
+CALL catalog_name.system.compute_table_stats(table => 'my_table', snapshot_id 
=> 1);
 ```
 
-Collect statistics of the snapshot with id `snap1` of table `my_table` for 
columns `col1` and `col2`
+Collect statistics of the snapshot with id `1` of table `my_table` for columns 
`col1` and `col2`
 ```sql
-CALL catalog_name.system.compute_table_stats(table => 'my_table', snapshot_id 
=> 'snap1', columns => array('col1', 'col2'));
+CALL catalog_name.system.compute_table_stats(table => 'my_table', snapshot_id 
=> 1, columns => array('col1', 'col2'));
 ```
 
 ## Partition Statistics
@@ -1015,7 +1015,7 @@ It performs a full compute if the previous partition 
statistics file does not ex
 | Argument Name | Required? | Type          | Description                      
                                              |
 
|---------------|-----------|---------------|--------------------------------------------------------------------------------|
 | `table`       | ✔️        | string        | Name of the table                
                                              |
-| `snapshot_id` |           | string        | Id of the snapshot to compute 
partition stats. Defaults to current snapshot id |
+| `snapshot_id` |           | long          | Id of the snapshot to compute 
partition stats. Defaults to current snapshot id |
 
 #### Output
 
@@ -1030,9 +1030,9 @@ Collect partition statistics of the latest snapshot of 
table `my_table`
 CALL catalog_name.system.compute_partition_stats('my_table');
 ```
 
-Collect partition statistics of the snapshot with id `snap1` of table 
`my_table`
+Collect partition statistics of the snapshot with id `1` of table `my_table`
 ```sql
-CALL catalog_name.system.compute_partition_stats(table => 'my_table', 
snapshot_id => 'snap1');
+CALL catalog_name.system.compute_partition_stats(table => 'my_table', 
snapshot_id => 1);
 ```
 
 ## Table Replication

Reply via email to