Skip to content

Commit 04c8ee6

Browse files
Fix typos and spelling issues identified by codespell (#2959)
* Fix findings with codespell * Fix findings with codespell
1 parent 04c1743 commit 04c8ee6

File tree

35 files changed

+49
-49
lines changed

35 files changed

+49
-49
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Tips:
123123

124124
The Apache Polaris build currently requires Java 21 or later. There are a few tools that help you running the right Java version:
125125

126-
* [SDKMAN!](https://sdkman.io/) follow the installation instructions, then run `sdk list java` to see the available distributions and versions, then run `sdk install java <identifer from list>` using the identifier for the distribution and version (>= 21) of your choice.
126+
* [SDKMAN!](https://sdkman.io/) follow the installation instructions, then run `sdk list java` to see the available distributions and versions, then run `sdk install java <identifier from list>` using the identifier for the distribution and version (>= 21) of your choice.
127127
* [jenv](https://www.jenv.be/) If on a Mac you can use jenv to set the appropriate SDK.
128128

129129
## Code Contribution Guidelines

getting-started/spark/notebooks/SparkPolaris.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@
638638
"metadata": {},
639639
"source": [
640640
"# Add another Principal Role to the Engineer Principal\n",
641-
"A principal can belong to multiple Principal Roles. Typically, a call will use the union of all privilages assigned to all of the principal's roles. "
641+
"A principal can belong to multiple Principal Roles. Typically, a call will use the union of all privileges assigned to all of the principal's roles. "
642642
]
643643
},
644644
{

helm/polaris/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ line breaks, they will be escaped and a multi-line option will be printed.
157157
Escapes a property key to be used in a configmap, conforming with the Java parsisng rules for
158158
property files: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)
159159
- Escapes all backslashes.
160-
- Escapes all key termination charaters: '=', ':' and whitespace.
160+
- Escapes all key termination characters: '=', ':' and whitespace.
161161
*/}}
162162
{{- define "polaris.escapeConfigOptionKey" -}}
163163
{{- $key := . -}}
@@ -204,7 +204,7 @@ Converts a Kubernetes quantity to a number (int64 if possible or float64 otherwi
204204
It handles raw numbers as well as quantities with suffixes
205205
like m, k, M, G, T, P, E, ki, Mi, Gi, Ti, Pi, Ei.
206206
It also handles scientific notation.
207-
Quantities should be positive, so negative values, zero, or any unparseable number
207+
Quantities should be positive, so negative values, zero, or any unparsable number
208208
will result in a failure.
209209
https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/
210210
*/}}

integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisRestCatalogIntegrationBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ public void multipleDiffsAgainstMultipleTablesLastFails() {
10281028
Transaction t2Transaction = catalog().loadTable(identifier2).newTransaction();
10291029
t2Transaction.updateSchema().renameColumn("data", "new-column").commit();
10301030

1031-
// delete the colum that is being renamed in the above TX to cause a conflict
1031+
// delete the column that is being renamed in the above TX to cause a conflict
10321032
table2.updateSchema().deleteColumn("data").commit();
10331033
Schema updatedSchemaTwo = table2.schema();
10341034

persistence/nosql/idgen/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Node IDs are leased by every "JVM running Polaris" for a period of time. The ID
4242
that no IDs will be generated for a timestamp that exceeds the "lease time". Leases can be extended. The implementation
4343
leverages atomic database operations (CAS) for the lease implementation.
4444

45-
ID generators must not use timestamps before or after the lease period nor must they re-use an older timestamp. This
45+
ID generators must not use timestamps before or after the lease period nor must they reuse an older timestamp. This
4646
requirement is satisfied using a monotonic clock implementation.
4747

4848
## Code structure

plugins/spark/v3.5/getting-started/notebooks/SparkPolaris.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@
399399
" id int, name string)\n",
400400
"USING delta LOCATION 'file:///tmp/delta_tables/people';\n",
401401
"\"\"\")\n",
402-
"# You can also use cloud storage like s3. For eample: s3://<bucket-name>/<path-to-table>\n",
402+
"# You can also use cloud storage like s3. For example: s3://<bucket-name>/<path-to-table>\n",
403403
"# Make the corresponding credentials are set up correctly"
404404
]
405405
},

plugins/spark/v3.5/integration/src/intTest/java/org/apache/polaris/spark/quarkus/it/SparkDeltaIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public void testDataframeSaveOperations() {
236236
List<String> subDirs = listDirs(getTableLocation(deltatb));
237237
assertThat(subDirs).contains("_delta_log");
238238

239-
// verify we can create a table out of the exising delta location
239+
// verify we can create a table out of the existing delta location
240240
sql("CREATE TABLE %s USING DELTA LOCATION '%s'", deltatb, getTableLocation(deltatb));
241241
List<Object[]> tables = sql("SHOW TABLES");
242242
assertThat(tables.size()).isEqualTo(1);

plugins/spark/v3.5/spark/src/main/java/org/apache/polaris/spark/utils/PolarisCatalogUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public static boolean useDelta(String provider) {
5151
}
5252

5353
/**
54-
* For tables whose location is manged by Spark Session Catalog, there will be no location or path
55-
* in the properties.
54+
* For tables whose location is managed by Spark Session Catalog, there will be no location or
55+
* path in the properties.
5656
*/
5757
public static boolean isTableWithSparkManagedLocation(Map<String, String> properties) {
5858
boolean hasLocationClause = properties.containsKey(TableCatalog.PROP_LOCATION);

polaris-core/src/main/java/org/apache/polaris/core/auth/PolarisAuthorizerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ public boolean isAuthorized(
865865
* permissions matching {@code privilege} on any entity in the resolvedPath of the resolvedPath.
866866
*
867867
* <p>The caller is responsible for translating these checks into either behavioral actions (e.g.
868-
* returning 404 instead of 403, checking other root privileges that supercede the checked
868+
* returning 404 instead of 403, checking other root privileges that supersede the checked
869869
* privilege, choosing whether to vend credentials) or throwing relevant Unauthorized
870870
* errors/exceptions.
871871
*/

polaris-core/src/main/java/org/apache/polaris/core/config/BehaviorChangeConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected BehaviorChangeConfiguration(
7070
.key("TABLE_OPERATIONS_MAKE_METADATA_CURRENT_ON_COMMIT")
7171
.description(
7272
"If true, BasePolarisTableOperations should mark the metadata that is passed into"
73-
+ " `commit` as current, and re-use it to skip a trip to object storage to re-construct"
73+
+ " `commit` as current, and reuse it to skip a trip to object storage to re-construct"
7474
+ " the committed metadata again.")
7575
.defaultValue(true)
7676
.buildBehaviorChangeConfiguration();

0 commit comments

Comments
 (0)