Skip to content

Commit e02d574

Browse files
authored
Add support for Spark 3.5.0 (#514)
* Add support for Spark 3.5.0 Signed-off-by: GBBBAS <[email protected]> * Update for tests Signed-off-by: GBBBAS <[email protected]> * Run tests on 3.4.1 Signed-off-by: GBBBAS <[email protected]> * Update mkdocs material package Signed-off-by: GBBBAS <[email protected]> --------- Signed-off-by: GBBBAS <[email protected]>
1 parent 04a8534 commit e02d574

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

.github/workflows/test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
matrix:
2828
os: [ubuntu-latest]
2929
python-version: ["3.8", "3.9", "3.10", "3.11"]
30-
pyspark: ["3.3.0", "3.3.1", "3.3.2", "3.4.0"]
30+
pyspark: ["3.3.0", "3.3.1", "3.3.2", "3.4.0", "3.4.1"]
3131
exclude:
3232
- pyspark: "3.4.0"
3333
python-version: "3.8"
@@ -49,7 +49,9 @@ jobs:
4949
- pyspark: "3.3.2"
5050
delta-spark: "2.3.0"
5151
- pyspark: "3.4.0"
52-
delta-spark: "2.4.0"
52+
delta-spark: "2.4.0"
53+
- pyspark: "3.4.1"
54+
delta-spark: "2.4.0"
5355
runs-on: ${{ matrix.os }}
5456
steps:
5557
- uses: actions/checkout@v3

docs/blog/.authors.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
GBBBAS:
16-
name: Bryce Bartmann
17-
description: Contributor
18-
avatar: https://github.com/GBBBAS.png
15+
authors:
16+
GBBBAS:
17+
name: Bryce Bartmann
18+
description: Contributor
19+
avatar: https://github.com/GBBBAS.png

environment.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ dependencies:
4040
- fastapi==0.100.1
4141
- httpx==0.24.1
4242
- trio==0.22.1
43-
- pyspark>=3.3.0,<3.5.0
43+
- pyspark>=3.3.0,<3.6.0
4444
- delta-spark>=2.2.0,<3.1.0
4545
- grpcio>=1.48.1
4646
- grpcio-status>=1.48.1
4747
- googleapis-common-protos>=1.56.4
4848
- openjdk==11.0.15
49-
- openai==0.27.8
49+
- openai==0.27.8
50+
- mkdocs-material==9.3.1
5051
- mkdocstrings==0.22.0
5152
- mkdocstrings-python==1.4.0
5253
- mkdocs-macros-plugin==1.0.1
@@ -75,5 +76,4 @@ dependencies:
7576
- langchain==0.0.291
7677
- build==0.10.0
7778
- deltalake==0.10.1
78-
- mkdocs-material==9.2.0b3
7979

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
]
4545

4646
PYSPARK_PACKAGES = [
47-
"pyspark>=3.3.0,<3.5.0",
47+
"pyspark>=3.3.0,<3.6.0",
4848
"delta-spark>=2.2.0,<2.5.0",
4949
]
5050

src/sdk/python/rtdip_sdk/pipelines/destinations/spark/pcdm_latest_to_delta.py

-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ def _write_latest_to_delta(self, df: DataFrame, epoch_id=None): # NOSONAR
168168
when_not_matched_insert_list = [
169169
DeltaMergeConditionValues(
170170
values={
171-
"EventDate": "source.EventDate",
172171
"TagName": "source.TagName",
173172
"EventTime": "source.EventTime",
174173
"Status": "source.Status",

tests/sdk/python/rtdip_sdk/pipelines/destinations/spark/test_pcdm_latest_to_delta.py

-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def create_delta_table(spark_session, name):
4747
spark=spark_session,
4848
table_name=name,
4949
columns=[
50-
DeltaTableColumn(name="EventDate", type="date", nullable=True),
5150
DeltaTableColumn(name="TagName", type="string", nullable=True),
5251
DeltaTableColumn(name="EventTime", type="timestamp", nullable=True),
5352
DeltaTableColumn(name="Status", type="string", nullable=True),
@@ -119,7 +118,6 @@ def test_spark_pcdm_latest_to_delta_write_batch(spark_session: SparkSession):
119118
expected_df = spark_session.createDataFrame(
120119
[
121120
{
122-
"EventDate": datetime(2023, 1, 20).date(),
123121
"TagName": "Tag1",
124122
"EventTime": datetime(2023, 1, 20, 1, 1),
125123
"Status": "Good",
@@ -131,7 +129,6 @@ def test_spark_pcdm_latest_to_delta_write_batch(spark_session: SparkSession):
131129
}
132130
]
133131
).select(
134-
"EventDate",
135132
"TagName",
136133
"EventTime",
137134
"Status",

0 commit comments

Comments
 (0)