Skip to content

Commit af818f2

Browse files
committed
Merge branch 'main' of github.com:apache/iceberg-python into fd-warnings
2 parents 1a06e8f + 8f8b622 commit af818f2

37 files changed

+1217
-550
lines changed

.asf.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ github:
2828
- apache
2929
- hacktoberfest
3030
- pyiceberg
31+
enabled_merge_buttons:
32+
merge: false
33+
squash: true
34+
rebase: true
35+
protected_branches:
36+
main:
37+
required_pull_request_reviews:
38+
required_approving_review_count: 1
39+
40+
required_linear_history: true
3141
features:
3242
wiki: true
3343
issues: true

.github/workflows/python-release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
version:
2626
description: 'Version'
2727
type: string
28-
default: 'master'
28+
default: 'main'
2929

3030

3131
jobs:
@@ -50,18 +50,16 @@ jobs:
5050

5151
- name: Set version
5252
run: python -m poetry version "${{ inputs.version }}"
53-
working-directory: ./python
54-
if: "${{ github.event.inputs.version != 'master' }}"
53+
if: "${{ github.event.inputs.version != 'main' }}"
5554

5655
# Publish the source distribution with the version that's in
5756
# the repository, otherwise the tests will fail
5857
- name: Compile source distribution
5958
run: python3 -m poetry build --format=sdist
6059
if: startsWith(matrix.os, 'ubuntu')
61-
working-directory: ./python
6260

6361
- name: Build wheels
64-
uses: pypa/[email protected].0
62+
uses: pypa/[email protected].2
6563
with:
6664
output-dir: wheelhouse
6765
config-file: "pyproject.toml"

dev/Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ WORKDIR ${SPARK_HOME}
3838

3939
ENV SPARK_VERSION=3.4.1
4040
ENV ICEBERG_SPARK_RUNTIME_VERSION=3.4_2.12
41-
ENV ICEBERG_VERSION=1.3.1
41+
ENV ICEBERG_VERSION=1.4.0
4242
ENV AWS_SDK_VERSION=2.20.18
4343
ENV PYICEBERG_VERSION=0.4.0
4444

@@ -50,13 +50,9 @@ RUN curl --retry 3 -s -C - https://dlcdn.apache.org/spark/spark-${SPARK_VERSION}
5050
RUN curl -s https://repo1.maven.org/maven2/org/apache/iceberg/iceberg-spark-runtime-${ICEBERG_SPARK_RUNTIME_VERSION}/${ICEBERG_VERSION}/iceberg-spark-runtime-${ICEBERG_SPARK_RUNTIME_VERSION}-${ICEBERG_VERSION}.jar -Lo iceberg-spark-runtime-${ICEBERG_SPARK_RUNTIME_VERSION}-${ICEBERG_VERSION}.jar \
5151
&& mv iceberg-spark-runtime-${ICEBERG_SPARK_RUNTIME_VERSION}-${ICEBERG_VERSION}.jar /opt/spark/jars
5252

53-
# Download Java AWS SDK
54-
RUN curl -s https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/${AWS_SDK_VERSION}/bundle-${AWS_SDK_VERSION}.jar -Lo bundle-${AWS_SDK_VERSION}.jar \
55-
&& mv bundle-${AWS_SDK_VERSION}.jar /opt/spark/jars
56-
57-
# Download URL connection client required for S3FileIO
58-
RUN curl -s https://repo1.maven.org/maven2/software/amazon/awssdk/url-connection-client/${AWS_SDK_VERSION}/url-connection-client-${AWS_SDK_VERSION}.jar -Lo url-connection-client-${AWS_SDK_VERSION}.jar \
59-
&& mv url-connection-client-${AWS_SDK_VERSION}.jar /opt/spark/jars
53+
# Download AWS bundle
54+
RUN curl -s https://repo1.maven.org/maven2/org/apache/iceberg/iceberg-aws-bundle/${ICEBERG_VERSION}/iceberg-aws-bundle-${ICEBERG_VERSION}.jar -Lo iceberg-aws-bundle-${ICEBERG_VERSION}.jar \
55+
&& mv iceberg-aws-bundle-${ICEBERG_VERSION}.jar /opt/spark/jars
6056

6157
COPY spark-defaults.conf /opt/spark/conf
6258
ENV PATH="/opt/spark/sbin:/opt/spark/bin:${PATH}"

dev/provision.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,3 +279,25 @@
279279
(CAST('2023-03-12' AS date), CAST('2023-03-12 12:22:00' AS timestamp), 12, 'l');
280280
"""
281281
)
282+
283+
# There is an issue with CREATE OR REPLACE
284+
# https://github.com/apache/iceberg/issues/8756
285+
spark.sql(
286+
"""
287+
DROP TABLE IF EXISTS default.test_table_version
288+
"""
289+
)
290+
291+
spark.sql(
292+
"""
293+
CREATE TABLE default.test_table_version (
294+
dt date,
295+
number integer,
296+
letter string
297+
)
298+
USING iceberg
299+
TBLPROPERTIES (
300+
'format-version'='1'
301+
);
302+
"""
303+
)

dev/spark-defaults.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spark.sql.catalog.demo org.apache.iceberg.spark.SparkCatalog
2020
spark.sql.catalog.demo.type rest
2121
spark.sql.catalog.demo.uri http://rest:8181
2222
spark.sql.catalog.demo.io-impl org.apache.iceberg.aws.s3.S3FileIO
23-
spark.sql.catalog.demo.warehouse s3a://warehouse/wh/
23+
spark.sql.catalog.demo.warehouse s3://warehouse/wh/
2424
spark.sql.catalog.demo.s3.endpoint http://minio:9000
2525
spark.sql.defaultCatalog demo
2626
spark.eventLog.enabled true

mkdocs/docs/api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ Renaming a field in an Iceberg table is simple:
195195

196196
```python
197197
with table.update_schema() as update:
198-
update.rename("retries", "num_retries")
198+
update.rename_column("retries", "num_retries")
199199
# This will rename `confirmed_by` to `exchange`
200-
update.rename("properties.confirmed_by", "exchange")
200+
update.rename_column("properties.confirmed_by", "exchange")
201201
```
202202

203203
### Move column

mkdocs/docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ If you want to install the library on the host, you can simply run `pip3 install
4343
To set up IDEA with Poetry ([also on Loom](https://www.loom.com/share/6d36464d45f244729d91003e7f671fd2)):
4444

4545
- Open up the Python project in IntelliJ
46-
- Make sure that you're on latest master (that includes Poetry)
46+
- Make sure that you're on latest main (that includes Poetry)
4747
- Go to File -> Project Structure (⌘;)
4848
- Go to Platform Settings -> SDKs
4949
- Click the + sign -> Add Python SDK

mkdocs/docs/how-to-release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ Both the source distribution (`sdist`) and the binary distributions (`wheels`) n
5454

5555
Before committing the files to the Apache SVN artifact distribution SVN hashes need to be generated, and those need to be signed with gpg to make sure that they are authentic.
5656

57-
Go to [Github Actions and run the `Python release` action](https://github.com/apache/iceberg/actions/workflows/python-release.yml). **Set the version to master, since we cannot modify the source**. Download the zip, and sign the files:
57+
Go to [Github Actions and run the `Python release` action](https://github.com/apache/iceberg/actions/workflows/python-release.yml). **Set the version to main, since we cannot modify the source**. Download the zip, and sign the files:
5858

5959
```bash
60-
cd release-master/
60+
cd release-main/
6161

6262
for name in $(ls pyiceberg-*.whl pyiceberg-*.tar.gz)
6363
do

mkdocs/mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
---
1818
site_name: PyIceberg
1919
site_url: https://py.iceberg.apache.org/
20-
repo_url: "https://github.com/apache/iceberg/tree/master/python"
21-
repo_name: "apache/iceberg/python"
20+
repo_url: "https://github.com/apache/iceberg-python"
21+
repo_name: "apache/iceberg-python"
2222

2323
plugins:
2424
- gen-files:

mkdocs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
# under the License.
1717

1818
mkdocs==1.5.3
19-
griffe==0.36.4
19+
griffe==0.36.5
2020
jinja2==3.1.2
2121
mkdocstrings==0.23.0
22-
mkdocstrings-python==1.7.1
22+
mkdocstrings-python==1.7.3
2323
mkdocs-literate-nav==0.6.1
2424
mkdocs-autorefs==0.5.0
2525
mkdocs-gen-files==0.5.0

0 commit comments

Comments
 (0)