nastra commented on code in PR #7433:
URL: https://github.com/apache/iceberg/pull/7433#discussion_r1179079671


##########
docs/spark-configuration.md:
##########
@@ -40,6 +40,14 @@ spark.sql.catalog.hive_prod.uri = 
thrift://metastore-host:port
 # omit uri to use the same URI as Spark: hive.metastore.uris in hive-site.xml
 ```
 
+Below is example for rest catalog named `rest_prod` that loads tables from 
REST URL `http://localhost:8080`:

Review Comment:
   ```suggestion
   Below is an example for a REST catalog named `rest_prod` that loads tables 
from REST URL `http://localhost:8080`:
   ```



##########
docs/spark-configuration.md:
##########
@@ -63,15 +63,20 @@ Iceberg supplies two implementations:
 
 Both catalogs are configured using properties nested under the catalog name. 
Common configuration properties for Hive and Hadoop are:
 
-| Property                                           | Values                  
      | Description                                                          |
-| -------------------------------------------------- | 
----------------------------- | 
-------------------------------------------------------------------- |
-| spark.sql.catalog._catalog-name_.type              | `hive`, `hadoop` or 
`rest`    | The underlying Iceberg catalog implementation, `HiveCatalog`, 
`HadoopCatalog`, `RESTCatalog` or left unset if using a custom catalog |
-| spark.sql.catalog._catalog-name_.catalog-impl      |                         
      | The underlying Iceberg catalog implementation.|
-| spark.sql.catalog._catalog-name_.default-namespace | default                 
      | The default current namespace for the catalog |
-| spark.sql.catalog._catalog-name_.uri               | thrift://host:port      
      | Metastore connect URI; default from `hive-site.xml` |
-| spark.sql.catalog._catalog-name_.warehouse         | 
hdfs://nn:8020/warehouse/path | Base path for the warehouse directory |
-| spark.sql.catalog._catalog-name_.cache-enabled     | `true` or `false`       
      | Whether to enable catalog cache, default value is `true` |
-| spark.sql.catalog._catalog-name_.cache.expiration-interval-ms | `30000` (30 
seconds) | Duration after which cached catalog entries are expired; Only 
effective if `cache-enabled` is `true`. `-1` disables cache expiration and `0` 
disables caching entirely, irrespective of `cache-enabled`. Default is `30000` 
(30 seconds) |                                                   |
+| Property                                                      | Values       
                 | Description                                                  
                                                                                
                                                                                
            |
+|---------------------------------------------------------------|-------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| spark.sql.catalog._catalog-name_.type                         | `hive`, 
`hadoop` or `rest`    | The underlying Iceberg catalog implementation, 
`HiveCatalog`, `HadoopCatalog`, `RESTCatalog` or left unset if using a custom 
catalog                                                                         
                            |

Review Comment:
   I think it's still preferrable if there's only a diff for the lines that are 
being added to the table



##########
docs/spark-configuration.md:
##########
@@ -63,15 +71,20 @@ Iceberg supplies two implementations:
 
 Both catalogs are configured using properties nested under the catalog name. 
Common configuration properties for Hive and Hadoop are:
 
-| Property                                           | Values                  
      | Description                                                          |
-| -------------------------------------------------- | 
----------------------------- | 
-------------------------------------------------------------------- |
-| spark.sql.catalog._catalog-name_.type              | `hive`, `hadoop` or 
`rest`    | The underlying Iceberg catalog implementation, `HiveCatalog`, 
`HadoopCatalog`, `RESTCatalog` or left unset if using a custom catalog |
-| spark.sql.catalog._catalog-name_.catalog-impl      |                         
      | The underlying Iceberg catalog implementation.|
-| spark.sql.catalog._catalog-name_.default-namespace | default                 
      | The default current namespace for the catalog |
-| spark.sql.catalog._catalog-name_.uri               | thrift://host:port      
      | Metastore connect URI; default from `hive-site.xml` |
-| spark.sql.catalog._catalog-name_.warehouse         | 
hdfs://nn:8020/warehouse/path | Base path for the warehouse directory |
-| spark.sql.catalog._catalog-name_.cache-enabled     | `true` or `false`       
      | Whether to enable catalog cache, default value is `true` |
-| spark.sql.catalog._catalog-name_.cache.expiration-interval-ms | `30000` (30 
seconds) | Duration after which cached catalog entries are expired; Only 
effective if `cache-enabled` is `true`. `-1` disables cache expiration and `0` 
disables caching entirely, irrespective of `cache-enabled`. Default is `30000` 
(30 seconds) |                                                   |
+| Property                                                      | Values       
                 | Description                                                  
                                                                                
                                                                                
            |
+|---------------------------------------------------------------|-------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| spark.sql.catalog._catalog-name_.type                         | `hive`, 
`hadoop` or `rest`    | The underlying Iceberg catalog implementation, 
`HiveCatalog`, `HadoopCatalog`, `RESTCatalog` or left unset if using a custom 
catalog                                                                         
                            |
+| spark.sql.catalog._catalog-name_.catalog-impl                 |              
                 | The underlying Iceberg catalog implementation.               
                                                                                
                                                                                
            |
+| spark.sql.catalog._catalog-name_.io-impl                      |              
                 | The custom FileIO implementation.                            
                                                                                
                                                                                
            |
+| spark.sql.catalog._catalog-name_.metrics-reporter-impl        |              
                 | The custom MetricsReporter implementation.                   
                                                                                
                                                                                
            |
+| spark.sql.catalog._catalog-name_.default-namespace            | default      
                 | The default current namespace for the catalog                
                                                                                
                                                                                
            |
+| spark.sql.catalog._catalog-name_.uri                          | 
thrift://host:port            | Hive Metastore URI (default from 
`hive-site.xml`) for hive catalog and REST URI for REST catalog                 
                                                                                
                                        |
+| spark.sql.catalog._catalog-name_.warehouse                    | 
hdfs://nn:8020/warehouse/path | Base path for the warehouse directory           
                                                                                
                                                                                
                         |
+| spark.sql.catalog._catalog-name_.cache-enabled                | `true` or 
`false`             | Whether to enable catalog cache, default value is `true`  
                                                                                
                                                                                
               |
+| spark.sql.catalog._catalog-name_.cache.expiration-interval-ms | `30000` (30 
seconds)          | Duration after which cached catalog entries are expired; 
Only effective if `cache-enabled` is `true`. `-1` disables cache expiration and 
`0` disables caching entirely, irrespective of `cache-enabled`. Default is 
`30000` (30 seconds) |                                                   |

Review Comment:
   It looks like this can be removed



##########
docs/spark-configuration.md:
##########
@@ -63,15 +71,20 @@ Iceberg supplies two implementations:
 
 Both catalogs are configured using properties nested under the catalog name. 
Common configuration properties for Hive and Hadoop are:
 
-| Property                                           | Values                  
      | Description                                                          |
-| -------------------------------------------------- | 
----------------------------- | 
-------------------------------------------------------------------- |
-| spark.sql.catalog._catalog-name_.type              | `hive`, `hadoop` or 
`rest`    | The underlying Iceberg catalog implementation, `HiveCatalog`, 
`HadoopCatalog`, `RESTCatalog` or left unset if using a custom catalog |
-| spark.sql.catalog._catalog-name_.catalog-impl      |                         
      | The underlying Iceberg catalog implementation.|
-| spark.sql.catalog._catalog-name_.default-namespace | default                 
      | The default current namespace for the catalog |
-| spark.sql.catalog._catalog-name_.uri               | thrift://host:port      
      | Metastore connect URI; default from `hive-site.xml` |
-| spark.sql.catalog._catalog-name_.warehouse         | 
hdfs://nn:8020/warehouse/path | Base path for the warehouse directory |
-| spark.sql.catalog._catalog-name_.cache-enabled     | `true` or `false`       
      | Whether to enable catalog cache, default value is `true` |
-| spark.sql.catalog._catalog-name_.cache.expiration-interval-ms | `30000` (30 
seconds) | Duration after which cached catalog entries are expired; Only 
effective if `cache-enabled` is `true`. `-1` disables cache expiration and `0` 
disables caching entirely, irrespective of `cache-enabled`. Default is `30000` 
(30 seconds) |                                                   |
+| Property                                                      | Values       
                 | Description                                                  
                                                                                
                                                                                
            |
+|---------------------------------------------------------------|-------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| spark.sql.catalog._catalog-name_.type                         | `hive`, 
`hadoop` or `rest`    | The underlying Iceberg catalog implementation, 
`HiveCatalog`, `HadoopCatalog`, `RESTCatalog` or left unset if using a custom 
catalog                                                                         
                            |
+| spark.sql.catalog._catalog-name_.catalog-impl                 |              
                 | The underlying Iceberg catalog implementation.               
                                                                                
                                                                                
            |
+| spark.sql.catalog._catalog-name_.io-impl                      |              
                 | The custom FileIO implementation.                            
                                                                                
                                                                                
            |
+| spark.sql.catalog._catalog-name_.metrics-reporter-impl        |              
                 | The custom MetricsReporter implementation.                   
                                                                                
                                                                                
            |
+| spark.sql.catalog._catalog-name_.default-namespace            | default      
                 | The default current namespace for the catalog                
                                                                                
                                                                                
            |
+| spark.sql.catalog._catalog-name_.uri                          | 
thrift://host:port            | Hive Metastore URI (default from 
`hive-site.xml`) for hive catalog and REST URI for REST catalog                 
                                                                                
                                        |
+| spark.sql.catalog._catalog-name_.warehouse                    | 
hdfs://nn:8020/warehouse/path | Base path for the warehouse directory           
                                                                                
                                                                                
                         |
+| spark.sql.catalog._catalog-name_.cache-enabled                | `true` or 
`false`             | Whether to enable catalog cache, default value is `true`  
                                                                                
                                                                                
               |
+| spark.sql.catalog._catalog-name_.cache.expiration-interval-ms | `30000` (30 
seconds)          | Duration after which cached catalog entries are expired; 
Only effective if `cache-enabled` is `true`. `-1` disables cache expiration and 
`0` disables caching entirely, irrespective of `cache-enabled`. Default is 
`30000` (30 seconds) |                                                   |

Review Comment:
   ```suggestion
   | spark.sql.catalog._catalog-name_.cache.expiration-interval-ms | `30000` 
(30 seconds)          | Duration after which cached catalog entries are 
expired; Only effective if `cache-enabled` is `true`. `-1` disables cache 
expiration and `0` disables caching entirely, irrespective of `cache-enabled`. 
Default is `30000` (30 seconds) |
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to