Skip to content

Commit c1b5314

Browse files
authored
Merge pull request #19 from apache/main
Updating fork of apache iceberg into Teradata iceberg
2 parents 555a3bb + eb460a5 commit c1b5314

File tree

4,659 files changed

+572270
-127315
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,659 files changed

+572270
-127315
lines changed

.asf.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919

2020
# The format of this file is documented at
21-
# https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features
21+
# https://github.com/apache/infrastructure-asfyaml/blob/main/README.md
2222

2323
github:
2424
description: "Apache Iceberg"
@@ -33,14 +33,16 @@ github:
3333
squash: true
3434
rebase: true
3535

36+
pull_requests:
37+
# auto-delete head branches after being merged
38+
del_branch_on_merge: true
39+
3640
protected_branches:
3741
main:
3842
required_pull_request_reviews:
3943
required_approving_review_count: 1
4044

4145
required_linear_history: true
42-
43-
del_branch_on_merge: true
4446

4547
features:
4648
wiki: true
@@ -64,6 +66,7 @@ notifications:
6466
commits: commits@iceberg.apache.org
6567
issues: issues@iceberg.apache.org
6668
pullrequests: issues@iceberg.apache.org
69+
jobs: ci-jobs@iceberg.apache.org
6770
jira_options: link label link label
6871

6972
publish:

.baseline/checkstyle/checkstyle-suppressions.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@
4949
<!-- Referencing guava classes should be allowed in classes within bundled-guava module -->
5050
<suppress files="org.apache.iceberg.GuavaClasses" id="BanUnrelocatedGuavaClasses"/>
5151

52+
<!-- Allow using Flink's shaded Curator dependency -->
53+
<suppress files="org.apache.iceberg.flink.maintenance.api.ZkLockFactory" id="BanShadedClasses"/>
54+
<suppress files="org.apache.iceberg.flink.maintenance.api.TestZkLockFactory" id="BanShadedClasses"/>
55+
5256
<!-- Suppress checks for CometColumnReader -->
5357
<suppress files="org.apache.iceberg.spark.data.vectorized.CometColumnReader" checks="IllegalImport"/>
58+
<!-- Suppress checks for CometDeletedColumnVector -->
59+
<suppress files="org.apache.iceberg.spark.data.vectorized.CometDeletedColumnVector" checks="IllegalImport"/>
60+
61+
<!-- Suppress TestClassNamingConvention for main source files -->
62+
<suppress files=".*[/\\]src[/\\]main[/\\].*" id="TestClassNamingConvention" />
5463
</suppressions>

.baseline/checkstyle/checkstyle.xml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@
9292
<property name="format" value="^\s*import\s+static\s+(?!\Qorg.assertj.core.api.Assertions.\E).*\.assertThatThrownBy;"/>
9393
<property name="message" value="assertThatThrownBy() should be statically imported from org.assertj.core.api.Assertions"/>
9494
</module>
95+
<module name="RegexpMultiline">
96+
<property name="format" value="^\s*import\s+static\s+org\.junit\.jupiter\.api\.Assertions\.\w+;"/>
97+
<property name="message" value="Prefer using org.assertj.core.api.Assertions instead."/>
98+
</module>
9599
<module name="RegexpMultiline">
96100
<property name="id" value="AssertThatThrownByWithMessageCheck"/>
97101
<property name="fileExtensions" value="java"/>
@@ -110,6 +114,10 @@
110114
<property name="format" value="^\s*import\s+\Qorg.assertj.core.api.Assertions;\E" />
111115
<property name="message" value="org.assertj.core.api.Assertions should only be used with static imports" />
112116
</module>
117+
<module name="RegexpMultiline">
118+
<property name="format" value="^\s*import\s+\Qorg.assertj.core.api.Assumptions;\E" />
119+
<property name="message" value="org.assertj.core.api.Assumptions should only be used with static imports" />
120+
</module>
113121
<module name="SuppressionFilter"> <!-- baseline-gradle: README.md -->
114122
<property name="file" value="${config_loc}/checkstyle-suppressions.xml"/>
115123
</module>
@@ -167,7 +175,6 @@
167175
org.apache.spark.sql.functions.*,
168176
org.apache.spark.sql.connector.iceberg.write.RowLevelOperation.Command.*,
169177
org.apache.spark.sql.connector.write.RowLevelOperation.Command.*,
170-
org.junit.Assert.*,
171178
org.assertj.core.api.Assertions.*,
172179
org.assertj.core.api.Assumptions.*"/>
173180
</module>
@@ -201,10 +208,6 @@
201208
<property name="setterCanReturnItsClass" value="true"/>
202209
</module>
203210
<module name="HideUtilityClassConstructor"/> <!-- Java Coding Guidelines: Private constructors -->
204-
<module name="IllegalImport"> <!-- Java Coding Guidelines: Use JUnit 4-style test classes and assertions -->
205-
<property name="illegalPkgs" value="junit.framework"/>
206-
<message key="import.illegal" value="Use JUnit 4-style (org.junit.*) test classes and assertions instead of JUnit 3 (junit.framework.*)."/>
207-
</module>
208211
<module name="IllegalImport"> <!-- Only relevant for pre-Java 11 because javafx is gone completely in Java 11 -->
209212
<property name="id" value="BanJavafx"/>
210213
<property name="illegalPkgs" value="javafx"/>
@@ -257,6 +260,17 @@
257260
<property name="illegalPkgs" value="com.google.common.testing"/>
258261
<message key="import.illegal" value="Use org.apache.iceberg.relocated.* classes from bundled-guava module instead."/>
259262
</module>
263+
<module name="IllegalImport">
264+
<property name="id" value="BanFlinkPreconditions"/>
265+
<property name="illegalClasses" value="org.apache.flink.util.Preconditions"/>
266+
<message key="import.illegal" value="Use org.apache.iceberg.relocated.com.google.common.base.Preconditions instead."/>
267+
</module>
268+
<module name="IllegalImport">
269+
<property name="id" value="BanHadoopUtils"/>
270+
<property name="regexp" value="true"/>
271+
<property name="illegalClasses" value="^org\.apache\.hadoop\.util\.(Sets|Lists|Preconditions)"/>
272+
<message key="import.illegal" value="Use org.apache.iceberg.relocated.* classes from bundled-guava module instead."/>
273+
</module>
260274
<module name="IllegalImport">
261275
<property name="id" value="GuavaClassesInAssertJ"/>
262276
<property name="illegalPkgs" value="org.assertj.core.util"/>
@@ -431,6 +445,11 @@
431445
<property name="format" value="@Test\(.*expected.*\)"/>
432446
<property name="message" value="Prefer using Assertions.assertThatThrownBy(...).isInstanceOf(...) instead."/>
433447
</module>
448+
<module name="RegexpSinglelineJava">
449+
<property name="id" value="TestClassNamingConvention"/>
450+
<property name="format" value="^\s*(public\s+)?(abstract\s+)?class\s+[A-Za-z0-9]*Test(\s|&lt;)"/>
451+
<property name="message" value="Test class names should start with 'Test' prefix, not end with 'Test' suffix. Example: 'TestNewFeature' instead of 'NewFeatureTest'"/>
452+
</module>
434453
<module name="IllegalToken">
435454
<property name="tokens" value="LITERAL_ASSERT"/>
436455
</module>
@@ -441,7 +460,7 @@
441460
</module>
442461
<module name="IllegalImport">
443462
<property name="id" value="BanJUnit5AssumptionsUsage"/>
444-
<property name="illegalPkgs" value="org.junit.jupiter.api.Assumptions"/>
463+
<property name="illegalClasses" value="org.junit.jupiter.api.Assumptions"/>
445464
<message key="import.illegal" value="Prefer using Assertions.assumeThat(...).isTrue() instead."/>
446465
</module>
447466
<module name="IllegalImport">
@@ -451,9 +470,14 @@
451470
</module>
452471
<module name="IllegalImport">
453472
<property name="id" value="BanJUnit5Assertions"/>
454-
<property name="illegalPkgs" value="org.junit.jupiter.api.Assertions"/>
473+
<property name="illegalClasses" value="org.junit.jupiter.api.Assertions"/>
455474
<message key="import.illegal" value="Prefer using org.assertj.core.api.Assertions instead."/>
456475
</module>
476+
<module name="IllegalImport">
477+
<property name="id" value="BanJUnit4Usage"/>
478+
<property name="illegalClasses" value="org.junit.Assert, org.junit.Assume, org.junit.Test"/>
479+
<message key="import.illegal" value="Prefer using JUnit5 / AssertJ instead."/>
480+
</module>
457481
<module name="RegexpSinglelineJava">
458482
<property name="ignoreComments" value="true"/>
459483
<property name="format" value="@Json(S|Des)erialize"/>

.baseline/scala/.scala212fmt.conf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
version = 3.9.7
19+
20+
align = none
21+
align.openParenDefnSite = false
22+
align.openParenCallSite = false
23+
align.tokens = []
24+
importSelectors = "singleLine"
25+
optIn = {
26+
configStyleArguments = false
27+
}
28+
danglingParentheses.preset = false
29+
docstrings.style = Asterisk
30+
docstrings.wrap = false
31+
maxColumn = 100
32+
runner.dialect = scala212

.baseline/scala/.scala213fmt.conf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
version = 3.9.7
19+
20+
align = none
21+
align.openParenDefnSite = false
22+
align.openParenCallSite = false
23+
align.tokens = []
24+
importSelectors = "singleLine"
25+
optIn = {
26+
configStyleArguments = false
27+
}
28+
danglingParentheses.preset = false
29+
docstrings.style = Asterisk
30+
docstrings.wrap = false
31+
maxColumn = 100
32+
runner.dialect = scala213

.github/ISSUE_TEMPLATE/iceberg_bug_report.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,24 @@ name: Iceberg Bug report 🐞
2222
description: Problems, bugs and issues with Apache Iceberg
2323
labels: ["bug"]
2424
body:
25+
- type: markdown
26+
attributes:
27+
value: |
28+
* Verify that the issue is not already reported, looking at the [currently open issues](https://github.com/apache/iceberg/issues), use the `Filter` field to narrow down your search.
29+
* **Possible security vulnerabilities**: STOP here and contact `security@apache.org` instead!
30+
* Do **NOT** share any sensitive information like passwords, security tokens, private URLs etc.
2531
- type: dropdown
2632
attributes:
2733
label: Apache Iceberg version
2834
description: What Apache Iceberg version are you using?
2935
multiple: false
3036
options:
31-
- "1.8.1 (latest release)"
37+
- "1.10.1 (latest release)"
38+
- "1.10.0"
39+
- "1.9.2"
40+
- "1.9.1"
41+
- "1.9.0"
42+
- "1.8.1"
3243
- "1.8.0"
3344
- "1.7.2"
3445
- "1.7.1"

.github/ISSUE_TEMPLATE/iceberg_improvement.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ name: Iceberg Improvement / Feature Request
2222
description: New features with Apache Iceberg
2323
labels: ["improvement"]
2424
body:
25+
- type: markdown
26+
attributes:
27+
value: |
28+
Do **NOT** share any sensitive information like passwords, security tokens, private URLs etc.
2529
- type: textarea
2630
attributes:
2731
label: Feature Request / Improvement

.github/ISSUE_TEMPLATE/iceberg_proposal.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ labels: ["proposal"]
2424
body:
2525
- type: markdown
2626
attributes:
27-
value: "Please see documentation site for information on [contributing proposals](https://iceberg.apache.org/contribute/#apache-iceberg-improvement-proposals)"
27+
value: |
28+
Please see documentation site for information on [contributing proposals](https://iceberg.apache.org/contribute/#apache-iceberg-improvement-proposals)
29+
30+
Do **NOT** share any sensitive information like passwords, security tokens, private URLs etc.
2831
- type: textarea
2932
attributes:
3033
label: Proposed Change

.github/ISSUE_TEMPLATE/iceberg_question.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ labels: ["question"]
2424
body:
2525
- type: markdown
2626
attributes:
27-
value: "Feel free to ask your question on [Slack](https://join.slack.com/t/apache-iceberg/shared_invite/zt-2561tq9qr-UtISlHgsdY3Virs3Z2_btQ) as well."
27+
value: |
28+
Feel free to ask your question on [Slack](https://join.slack.com/t/apache-iceberg/shared_invite/zt-3kclosz6r-3heAW3d~_PHefmN2A_~cAg) as well.
29+
30+
Do **NOT** share any sensitive information like passwords, security tokens, private URLs etc.
2831
- type: textarea
2932
attributes:
3033
label: Query engine

.github/dependabot.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ updates:
2424
schedule:
2525
interval: "weekly"
2626
day: "sunday"
27-
ignore:
28-
- dependency-name: "*"
29-
update-types: ["version-update:semver-major"]
3027
- package-ecosystem: "gradle"
3128
directory: "/"
3229
schedule:

0 commit comments

Comments
 (0)