Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

True up the documentation branch to main #25

Merged
merged 1,797 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1797 commits
Select commit Hold shift + click to select a range
e6448a2
Add docs archive checkout.
Jan 15, 2024
a892a37
Add docs archive checkout.
Jan 15, 2024
91bf62f
Add docs archive checkout.
Jan 15, 2024
bee2aa9
Add docs archive checkout.
Jan 15, 2024
13f99e9
Add docs archive checkout.
Jan 15, 2024
72a506a
Add docs archive checkout.
Jan 15, 2024
95eedc0
Add docs archive checkout.
Jan 15, 2024
0dfcd95
Add docs archive checkout.
Jan 15, 2024
84ba805
Add docs archive checkout.
Jan 15, 2024
778ff5c
Add docs archive checkout.
Jan 15, 2024
57c1c98
Add docs archive checkout.
Jan 15, 2024
fa22eea
Add docs archive checkout.
Jan 15, 2024
2f14acd
Add docs archive checkout.
Jan 15, 2024
7bc7705
Link archived docs.
Jan 15, 2024
0167e51
Link archived docs.
Jan 15, 2024
dbdb24d
Link archived docs.
Jan 15, 2024
b843d40
Docs updates for new versions.
Jan 15, 2024
f828605
Docs updates for new versions.
Jan 15, 2024
8791ef7
Fix formatting issues.
Jan 15, 2024
1621d25
Merge pull request #505 from databrickslabs/releases/v_0.4.0
Jan 15, 2024
5a4b7e4
Update docs index page.
Jan 15, 2024
81b9352
Bump org.apache.maven.plugins:maven-surefire-plugin from 3.2.3 to 3.2.5
dependabot[bot] Jan 15, 2024
d59bfff
Merge pull request #508 from databrickslabs/feature/docs_fix
Jan 16, 2024
1e09d1f
Merge pull request #509 from databrickslabs/dependabot/maven/org.apac…
Jan 16, 2024
7601a35
dont use mock in test
Jan 16, 2024
ca64b35
results var name
Jan 16, 2024
ee0c887
Merge branch 'databrickslabs:main' into main
a0x8o Jan 16, 2024
35e2594
Remove warning from docs main page.
Jan 17, 2024
f425ba5
Merge pull request #511 from databrickslabs/feature/docs
Jan 17, 2024
fa2fc5c
Add tests for RST_stats expressions.
Jan 17, 2024
aacf3d2
Merge branch 'main' into feature/fix_raster_to_grid
Jan 17, 2024
7300d64
nit: bufferloop (temp) column name
Jan 18, 2024
a38b94d
add additional feature_type values
kieranross Jan 18, 2024
55948f4
add tests comparing with postgis
Jan 18, 2024
1a55706
int/double parameter typing
Jan 18, 2024
d27d482
scalafmt
Jan 18, 2024
58a03bb
add too extra params to python st_bufer
Jan 18, 2024
2786f1a
Delete notebooks/prototypes directory
mjohns-databricks Jan 18, 2024
46a12d3
Create README.md
mjohns-databricks Jan 18, 2024
22d1ac5
Create README.md
mjohns-databricks Jan 18, 2024
c433a30
Add files via upload
mjohns-databricks Jan 18, 2024
a814855
Add files via upload
mjohns-databricks Jan 18, 2024
d78abd4
Add files via upload
mjohns-databricks Jan 18, 2024
adc5cc1
Add files via upload
mjohns-databricks Jan 18, 2024
2af3640
Add files via upload
mjohns-databricks Jan 18, 2024
747c033
Add files via upload
mjohns-databricks Jan 18, 2024
913b5f8
Add files via upload
mjohns-databricks Jan 18, 2024
b03d85a
swap column order
Jan 18, 2024
dbaeaaf
Add files via upload
mjohns-databricks Jan 18, 2024
25851da
Add files via upload
mjohns-databricks Jan 18, 2024
b0ced43
Update README.md
mjohns-databricks Jan 18, 2024
274dac3
Update README.md
mjohns-databricks Jan 18, 2024
dc9ef01
Merge pull request #515 from mjohns-databricks/eo-series-1
Jan 19, 2024
4d3c109
Merge pull request #513 from databrickslabs/bufferloop-columnname
Jan 19, 2024
becbea8
Initial refresh to existing raster docs.
mjohns-databricks Jan 21, 2024
7704f2d
bufferstyleparameters is a string
Jan 21, 2024
990dcc9
buffer string args for JTS
Jan 21, 2024
5216ea0
add extra params to doc
Jan 21, 2024
1e5a55a
minor debug
Jan 21, 2024
7874c5c
Added missing functions to existing raster docs (and raster.py).
mjohns-databricks Jan 22, 2024
8ff5f02
minor debug
Jan 22, 2024
37146eb
updated install-gdal and rasterio-udfs docs; more api cleanup.
mjohns-databricks Jan 22, 2024
a85a0f8
provided additional st_concavehull variation after R warning.
mjohns-databricks Jan 22, 2024
77b81dc
Bump org.scoverage:scoverage-maven-plugin from 2.0.1 to 2.0.2
dependabot[bot] Jan 22, 2024
e3a2e0f
minor debug
Jan 23, 2024
c664db7
scalafmt, flake8
Jan 23, 2024
5ea40b9
copy commit 7300d64
Jan 23, 2024
696e852
Merge pull request #518 from databrickslabs/dependabot/maven/org.scov…
Jan 23, 2024
e9ed7a8
put back single-parameter version of st_buffer
Jan 23, 2024
63232f0
scalafmt
Jan 23, 2024
cae843c
adjustments from PR feedback; also, deprecated st_instersection_aggre…
mjohns-databricks Jan 23, 2024
00b1f39
more adjustments from PR feedback.
mjohns-databricks Jan 23, 2024
4b45b44
more adjustments from PR feedback.
mjohns-databricks Jan 23, 2024
87d45a2
complete move of _agg raster functions to aggregators.py
mjohns-databricks Jan 23, 2024
de74df2
Fixed a broken python test from refactor. Live tested rasterio udf ex…
mjohns-databricks Jan 23, 2024
1d3042f
Merge branch 'databrickslabs:main' into main
a0x8o Jan 24, 2024
d89cc16
Merge pull request #517 from mjohns-databricks/mjohns-4.0-docs-1
Jan 24, 2024
dbd037d
Update README.md
mjohns-databricks Jan 24, 2024
2578d2d
adjustments to docs from initial PR merge. Still need to address st_g…
mjohns-databricks Jan 24, 2024
bdfbdd4
updated vector reader docs.
mjohns-databricks Jan 24, 2024
2a96291
Merge pull request #519 from mjohns-databricks/mjohns-0.4.0-docs-3
Jan 25, 2024
b9d9cdb
updated additional docs.
mjohns-databricks Jan 25, 2024
f308a49
Merge remote-tracking branch 'origin/mjohns-0.4.0-docs-4' into mjohns…
mjohns-databricks Jan 25, 2024
9e01d87
Merge pull request #520 from mjohns-databricks/mjohns-0.4.0-docs-4
Jan 25, 2024
7194150
updated additional docs.
mjohns-databricks Jan 25, 2024
c8946c5
Merge remote-tracking branch 'origin/mjohns-0.4.0-docs-5' into mjohns…
mjohns-databricks Jan 25, 2024
7950146
removing warning boxes for "Deprecation ERRORs" in the docs.
mjohns-databricks Jan 25, 2024
25cf059
Merge branch 'databrickslabs:main' into main
a0x8o Jan 25, 2024
fa65964
Documenting assigned cluster SQL registration working on DBR 13.3.
mjohns-databricks Jan 25, 2024
094c83b
hard refresh tip.
mjohns-databricks Jan 25, 2024
827f3a8
formatting.
mjohns-databricks Jan 25, 2024
6b9a8f9
Merge pull request #521 from mjohns-databricks/mjohns-0.4.0-docs-5
Jan 26, 2024
f67b573
formatting.
mjohns-databricks Jan 26, 2024
042ac7c
Merge pull request #522 from mjohns-databricks/mjohns-0.4.0-docs-6
Jan 26, 2024
ddceac0
formatting. cleanup gdal driver sections.
mjohns-databricks Jan 26, 2024
0df5154
formatting.
mjohns-databricks Jan 26, 2024
0769d93
Merge pull request #22 from databrickslabs/main
a0x8o Jan 27, 2024
eef2dd2
Merge pull request #523 from mjohns-databricks/mjohns-0.4.0-docs-7
Jan 28, 2024
7a7972c
Update vector-format-readers.rst
mjohns-databricks Jan 29, 2024
3cc49fc
minor changes, formatting, fixed up netcdf python test
sllynn Jan 30, 2024
7cfcfce
Merge remote-tracking branch 'origin/main' into scala/fix/netcdf
sllynn Jan 30, 2024
deab4ae
merged in main
sllynn Jan 30, 2024
989ae76
formatting and additional content, e.g. for vector format UDFs.
mjohns-databricks Jan 30, 2024
694c100
grammar.
mjohns-databricks Jan 30, 2024
6cb16ae
missed variable rename.
mjohns-databricks Jan 30, 2024
2f177fd
fix r tests
sllynn Jan 30, 2024
e843d39
missed a variable removal in refactor.
mjohns-databricks Jan 30, 2024
2cc633f
Merge branch 'databrickslabs:main' into main
a0x8o Jan 30, 2024
307cb6e
Merge pull request #526 from mjohns-databricks/mjohns-0.4.0-docs-9
Jan 30, 2024
712bfe2
formatting
mjohns-databricks Jan 30, 2024
cffa517
Merge remote-tracking branch 'origin/mjohns-0.4.0-docs-10' into mjohn…
mjohns-databricks Jan 30, 2024
5e6a189
Merge pull request #527 from mjohns-databricks/mjohns-0.4.0-docs-10
Jan 31, 2024
a99fb37
added GDAL extension to R package
sllynn Jan 31, 2024
a5998b7
added indexing tests back
sllynn Jan 31, 2024
0ad7d63
formatting
mjohns-databricks Jan 31, 2024
66affda
Merge remote-tracking branch 'origin/mjohns-0.4.0-docs-11' into mjohn…
mjohns-databricks Jan 31, 2024
5cff5b1
formatting
mjohns-databricks Jan 31, 2024
f0e6e03
formatting
mjohns-databricks Jan 31, 2024
79ff6e6
Fix the format name for grib files in tests.
Feb 1, 2024
34c513a
Merge branch 'main' into buffer-params
Feb 1, 2024
dfa372f
Merge pull request #507 from databrickslabs/st_z
Feb 1, 2024
acc0b2a
Merge pull request #529 from mjohns-databricks/mjohns-0.4.0-docs-11
Feb 1, 2024
67aec7f
Merge pull request #23 from databrickslabs/main
a0x8o Feb 1, 2024
0d49847
added raster tests to sparklyr bindings
sllynn Feb 2, 2024
9596791
added raster expression tests for SparkR bindings
sllynn Feb 2, 2024
279d88e
small fixes to DESCRIPTION files
sllynn Feb 2, 2024
88a1a46
bring R workflow action in line with python equivalent
sllynn Feb 2, 2024
d22a7af
include st_within in python import and scala test
Feb 8, 2024
9e072f1
swap parameters order for better logic
Feb 8, 2024
c3dc72f
retrigger builds with empty commit
Feb 8, 2024
398ef5c
Merge pull request #530 from databrickslabs/within-minor
Feb 12, 2024
8e57422
Merge branch 'databrickslabs:main' into main
a0x8o Feb 13, 2024
9043e03
Merge pull request #528 from databrickslabs/r/fix/gdal
Feb 13, 2024
6a79482
updated logic for checking empty band to exclude masked areas
sllynn Feb 13, 2024
fa80aab
Fix zip logic for zarr files.
Feb 13, 2024
32d6f76
Fix raster tests in R.
Feb 13, 2024
a7ab70b
Merge pull request #460 from databrickslabs/scala/fix/netcdf
Feb 13, 2024
0f893f2
Merge branch 'main' into buffer-params
Feb 13, 2024
5a85ef9
Fix zarr zip paths.
Feb 13, 2024
53b3590
Update testVectorFunctions.R
Feb 13, 2024
a4815d6
Merge branch 'main' into feature/fix_raster_to_grid
Feb 13, 2024
f6e9e1d
Merge branch 'databrickslabs:main' into main
a0x8o Feb 14, 2024
8356b6a
Add COG to format extensions list.
Feb 26, 2024
3b2087b
Merge pull request #514 from kieranross89/fix-kepler-usage-docs
Feb 26, 2024
591e1fd
Remove large file test, the test can only be run locally since the fi…
Feb 26, 2024
ff07073
Fix python build.
Feb 26, 2024
6d3bce6
Fix python build.
Feb 26, 2024
398386b
Fix python build.
Feb 26, 2024
3609daa
Fix python build.
Feb 26, 2024
db50866
Fix python build.
Feb 26, 2024
f78629a
Fix python build.
Feb 26, 2024
f824fba
Added tokei.rs badge
nfx Feb 28, 2024
c142240
Merge pull request #537 from databrickslabs/badge/tokei
Mar 1, 2024
67b7385
Fix python build.
Mar 1, 2024
11d15be
Fix python build.
Mar 1, 2024
5b42334
Fix python build.
Mar 1, 2024
86a3901
Fix python build.
Mar 1, 2024
61ba42b
Fix python build.
Mar 1, 2024
778e3be
Fix python build.
Mar 1, 2024
d92b93d
Fix R build.
Mar 1, 2024
7d803be
fix R tests
sllynn Mar 1, 2024
6beb61e
Merge remote-tracking branch 'origin/feature/fix_raster_to_grid' into…
sllynn Mar 1, 2024
5e9e846
Fix gribs build.
Mar 1, 2024
973042c
Merge remote-tracking branch 'origin/feature/fix_raster_to_grid' into…
Mar 1, 2024
71db41a
Fix gribs build.
Mar 4, 2024
850cb55
Fix gribs build.
Mar 4, 2024
e84834b
Fix R build.
Mar 4, 2024
c539615
Fix coverage tests.
Mar 5, 2024
8701525
Merge pull request #512 from databrickslabs/feature/fix_raster_to_grid
Mar 6, 2024
2ec5d9d
Merge pull request #516 from databrickslabs/buffer-params
Mar 6, 2024
4d6ad7a
Bump org.apache.maven.plugins:maven-assembly-plugin from 3.6.0 to 3.7.0
dependabot[bot] Mar 11, 2024
29621c6
Documentation updates
Apr 28, 2023
7be3fdd
Sedona Raster example
May 1, 2023
df3bda4
Merge branch 'databrickslabs-main'
a0x8o Mar 12, 2024
8b7f276
Add ST_AsGeojsonTileAgg aggregator function.
Mar 12, 2024
8874c39
Merge pull request #540 from databrickslabs/feature/tiller_functions
Mar 15, 2024
fc7bbfb
Merge pull request #539 from databrickslabs/dependabot/maven/org.apac…
Mar 15, 2024
7918a29
Add python bindings for MosaicAnalyzer.
Mar 15, 2024
e1d396f
Merge pull request #541 from databrickslabs/feature/python_analyzer
Mar 15, 2024
7321e57
Release for 0.4.1
Mar 15, 2024
a64da84
Merge pull request #543 from databrickslabs/releases/v_0.4.1
Mar 15, 2024
3ad89bc
Merge branch 'databrickslabs:main' into main
a0x8o Mar 19, 2024
7e1318f
Initial docs refresh for Mosaic 0.4.1.
mjohns-databricks Apr 3, 2024
63ffc7e
Consistent formatting of param references.
mjohns-databricks Apr 3, 2024
5b78130
another formatting fix.
mjohns-databricks Apr 3, 2024
29abe28
fixed convolve examples
sllynn Apr 5, 2024
066d500
updated raster function docs
sllynn Apr 5, 2024
e204fd4
updated aggregation func docs
sllynn Apr 5, 2024
4c900a8
updated spatial func docs
sllynn Apr 5, 2024
2e64332
Merge pull request #549 from databrickslabs/mjohns-0.4.1-docs-1
mjohns-databricks Apr 5, 2024
f8add92
Merge branch 'databrickslabs:main' into main
a0x8o Apr 9, 2024
af37d92
checkpoint handling, streamline gdal setup, test log changes
mjohns-databricks May 1, 2024
ff7a840
undo local pom changes
mjohns-databricks May 1, 2024
07be355
revert StringType in readRaster to use createInfo
mjohns-databricks May 1, 2024
3b999d0
reducing long-running test data
mjohns-databricks May 1, 2024
53de83f
logging level adjusted; no checkpoint test adjusted.
mjohns-databricks May 1, 2024
c4bb275
Update action.yml
mjohns-databricks May 1, 2024
62faf13
.gitignore updated for local notebooks
mjohns-databricks May 1, 2024
241aa7c
Update action.yml
mjohns-databricks May 2, 2024
ab1eb38
Update build_scala.yml
mjohns-databricks May 2, 2024
aa0f1f8
Update build_main.yml
mjohns-databricks May 2, 2024
d17916f
Merge pull request #557 from databrickslabs/mjohns-databricks-codecov-v4
mjohns-databricks May 2, 2024
2b429bd
Merge pull request #559 from databrickslabs/main
mjohns-databricks May 3, 2024
7ccb8d8
merged codecov change, optional local build tweaks, reorder a test
mjohns-databricks May 6, 2024
dec0a94
Appended './0.4.2' to default fuse path, updating checkpoint fields …
mjohns-databricks May 6, 2024
ee8782e
spark configs set for checkpoint.
mjohns-databricks May 6, 2024
ee89699
adjusted local build, refreshing expression configs for checkpoint
mjohns-databricks May 7, 2024
6159d60
checkpoint accessors, deserialize handling.
mjohns-databricks May 8, 2024
a718021
deserialize checking
mjohns-databricks May 8, 2024
67cc869
revert deserialize checking
mjohns-databricks May 8, 2024
6992e90
fallback to path on raster ClassCastException
mjohns-databricks May 8, 2024
f65dfd1
serialize fallback to path on raster ClassCastException
mjohns-databricks May 8, 2024
0074150
deserialization handling
mjohns-databricks May 8, 2024
b660135
classcastexception and null check.
mjohns-databricks May 9, 2024
8868a1f
Merge branch 'databrickslabs:main' into main
a0x8o May 9, 2024
f062397
RasterTileTile now checkpoint aware.
mjohns-databricks May 9, 2024
8ab2bb8
pin geopandas ver pinned to 0.14, h3 ver pinned to 3.7, deserializati…
mjohns-databricks May 13, 2024
f4245d1
additional docs, use pathlib for writing script.
mjohns-databricks May 13, 2024
49a7366
clarify custom JVM vs built-in language in docs.
mjohns-databricks May 14, 2024
66a0bc1
Merge pull request #560 from databrickslabs/bundle_fix_0.4.2
mjohns-databricks May 14, 2024
0014122
Merge branch 'databrickslabs:main' into main
a0x8o May 14, 2024
920263d
pin geopandas ver pinned to 0.14, h3 ver pinned to 3.7, deserializati…
mjohns-databricks May 13, 2024
0387a12
additional docs, use pathlib for writing script.
mjohns-databricks May 13, 2024
e1a2754
clarify custom JVM vs built-in language in docs.
mjohns-databricks May 14, 2024
7dc5b13
pin geopandas ver pinned to 0.14, h3 ver pinned to 3.7, deserializati…
mjohns-databricks May 13, 2024
cab5db5
additional docs, use pathlib for writing script.
mjohns-databricks May 13, 2024
63435fc
clarify custom JVM vs built-in language in docs.
mjohns-databricks May 14, 2024
0770a2f
Merge remote-tracking branch 'refs/remotes/origin/main' into HEAD
mjohns-databricks May 14, 2024
d442b35
merge changes prior to 0.4.2 release, remove pyspark dep.
mjohns-databricks May 14, 2024
74ae84b
checkpoint handling for file and content.
mjohns-databricks May 15, 2024
acae6a8
enableGDALWithCheckpoint re-inits MosaicContext
mjohns-databricks May 16, 2024
5ef3620
re-register spark expressions for checkpoint
mjohns-databricks May 16, 2024
3e6938a
refresh python mosaic context. adjusted config for python and ipython…
mjohns-databricks May 16, 2024
8e658b0
additional adjustments to mosaic_context and additional functions for…
mjohns-databricks May 16, 2024
406027a
streamline python bindings wrt mosaic_context.
mjohns-databricks May 17, 2024
f11a271
version to 0.4.3, hasContext() function added to MosaicContext class.
mjohns-databricks May 17, 2024
b0f3230
gdal API handles checkpoint config changes.
mjohns-databricks May 20, 2024
705970c
reset checkpoint support, additional testing.
mjohns-databricks May 21, 2024
a3fee82
new functions to gdal __all__
mjohns-databricks May 21, 2024
ef3ee9a
small commit to trigger github build.
mjohns-databricks May 21, 2024
2e3f3bd
changelog, docker, and pyspark version changes.
mjohns-databricks May 24, 2024
4b80084
library handling.
mjohns-databricks May 24, 2024
2643882
Merge pull request #562 from databrickslabs/checkpoint_0.4.2
mjohns-databricks May 28, 2024
939533a
Merge branch 'databrickslabs:main' into main
a0x8o Jun 3, 2024
84d31f0
Always link to latest
Jun 20, 2024
58b4dec
Merge pull request #566 from databrickslabs/sedona-latest
mjohns-databricks Jun 20, 2024
fcd4f0d
Merge branch 'databrickslabs:main' into main
a0x8o Jun 27, 2024
9a37b69
Unify release to PyPI via GitHub OIDC
nfx Jul 11, 2024
3a99cac
Merge pull request #567 from databrickslabs/oidc
mjohns-databricks Jul 11, 2024
7bbbd91
Merge branch 'databrickslabs:main' into main
a0x8o Jul 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ A clear and concise description of any alternative solutions or features you've

**Additional context**
Add any other context or screenshots about the feature request here.

**Contributing to Mosaic**
Guidelines for contributing to Mosaic can be found in `CONTRIBUTING.md`.
27 changes: 27 additions & 0 deletions .github/actions/python_build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build mosaic python
description: build mosaic python
runs:
using: "composite"
steps:
- name: Configure python interpreter
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install python dependencies
shell: bash
run: |
# - install pip libs
# note: gdal requires the extra args
cd python
pip install build wheel pyspark==${{ matrix.spark }} numpy==${{ matrix.numpy }}
pip install --no-build-isolation --no-cache-dir --force-reinstall gdal==${{ matrix.gdal }}
pip install .
- name: Test and build python package
shell: bash
run: |
cd python
python -m unittest
python -m build
- name: Copy python artifacts to GH Actions run
shell: bash
run: cp python/dist/*.whl staging
92 changes: 92 additions & 0 deletions .github/actions/r_build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: build mosaic R
description: build mosaic R
runs:
using: "composite"
steps:
- name: Setup R build environment
shell: bash
run: |
sudo apt-get update && sudo apt-get install -y curl libcurl4-openssl-dev pkg-config libharfbuzz-dev libfribidi-dev
- name: Configure python interpreter
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install python dependencies
shell: bash
run: |
# - install pip libs
# note: gdal requires the extra args
cd python
pip install build wheel pyspark==${{ matrix.spark }} numpy==${{ matrix.numpy }}
pip install --no-build-isolation --no-cache-dir --force-reinstall gdal==${{ matrix.gdal }}
- name: Create download location for Spark
shell: bash
run: |
sudo mkdir -p /usr/spark-download-${{ matrix.spark }}/unzipped
sudo mkdir -p /usr/spark-download-${{ matrix.spark }}/raw
sudo chown -R $USER: /usr/spark-download-${{ matrix.spark }}/
- name: Cache Spark download
id: cache-spark
uses: actions/cache@v3
with:
path: /usr/spark-download-${{ matrix.spark }}/unzipped
key: r_build-spark
- if: ${{ steps.cache-spark.outputs.cache-hit != 'true' }}
name: Download and unpack Spark
shell: bash
run: |
wget -P /usr/spark-download-${{ matrix.spark }}/raw https://archive.apache.org/dist/spark/spark-${{ matrix.spark }}/spark-${{ matrix.spark }}-bin-hadoop3.tgz
tar zxvf /usr/spark-download-${{ matrix.spark }}/raw/spark-${{ matrix.spark }}-bin-hadoop3.tgz -C /usr/spark-download-${{ matrix.spark }}/unzipped
- name: Create R environment
shell: bash
run: |
sudo mkdir -p /usr/lib/R/site-library
sudo chown -R $USER: /usr/lib/R/site-library
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.R }}
use-public-rspm: true
- name: Install R dependencies
shell: bash
run: |
cd R
Rscript --vanilla install_deps.R
- name: Generate R bindings
shell: bash
run: |
cd R
Rscript --vanilla generate_R_bindings.R ../src/main/scala/com/databricks/labs/mosaic/functions/MosaicContext.scala
- name: Build R docs
shell: bash
run: |
cd R
Rscript --vanilla generate_docs.R
env:
SPARK_HOME: /usr/spark-download-${{ matrix.spark }}/unzipped/spark-${{ matrix.spark }}-bin-hadoop3
- name: Build R package
shell: bash
run: |
cd R
Rscript --vanilla build_r_package.R
env:
SPARK_HOME: /usr/spark-download-${{ matrix.spark }}/unzipped/spark-${{ matrix.spark }}-bin-hadoop3
- name: Test SparkR package
shell: bash
run: |
cd R/sparkR-mosaic
Rscript --vanilla tests.R
env:
SPARK_HOME: /usr/spark-download-${{ matrix.spark }}/unzipped/spark-${{ matrix.spark }}-bin-hadoop3
- name: Test sparklyr package
shell: bash
run: |
cd R/sparklyr-mosaic
Rscript --vanilla tests.R
env:
SPARK_HOME: /usr/spark-download-${{ matrix.spark }}/unzipped/spark-${{ matrix.spark }}-bin-hadoop3
- name: Copy R artifacts to GH Actions run
shell: bash
run: |
cp R/sparkR-mosaic/*.tar.gz staging
cp R/sparklyr-mosaic/*.tar.gz staging
50 changes: 50 additions & 0 deletions .github/actions/scala_build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: build mosaic scala
description: build mosaic scala
inputs:
skip_tests:
description: 'Skip Scala Tests? true or false'
default: 'false'
runs:
using: "composite"
steps:
- name: Configure JDK
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'zulu'
- name: Configure python interpreter
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Add packaged GDAL dependencies
shell: bash
run : |
# - update apt
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-backports main universe multiverse restricted"
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates main universe multiverse restricted"
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-security main multiverse restricted universe"
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main multiverse restricted universe"
sudo apt-get update -y
# - install natives
sudo apt-get install -y unixodbc libcurl3-gnutls libsnappy-dev libopenjp2-7
sudo apt-get install -y gdal-bin libgdal-dev python3-numpy python3-gdal zip unzip
# - install pip libs
pip install --upgrade pip
pip install gdal==${{ matrix.gdal }}
# - add the so files
sudo wget -nv -P /usr/lib -nc https://raw.githubusercontent.com/databrickslabs/mosaic/main/resources/gdal/jammy/libgdalalljni.so
sudo wget -nv -P /usr/lib -nc https://raw.githubusercontent.com/databrickslabs/mosaic/main/resources/gdal/jammy/libgdalalljni.so.30
sudo wget -nv -P /usr/lib -nc https://raw.githubusercontent.com/databrickslabs/mosaic/main/resources/gdal/jammy/libgdalalljni.so.30.0.3
- name: Test and build the scala JAR - skip tests is false
if: inputs.skip_tests == 'false'
shell: bash
run: sudo mvn -q clean install
- name: Build the scala JAR - skip tests is true
if: inputs.skip_tests == 'true'
shell: bash
run: sudo mvn -q clean install -DskipTests -Dscoverage.skip
- name: Copy Scala artifacts to GH Actions run
shell: bash
run: |
mkdir staging
cp target/mosaic*.jar staging
10 changes: 10 additions & 0 deletions .github/actions/upload_artefacts/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: upload mosaic artefacts
description: upload mosaic artefacts
runs:
using: "composite"
steps:
- name: upload artefacts
uses: actions/upload-artifact@v3
with:
name: artefacts
path: staging/*
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "pip"
directory: "/python"
schedule:
interval: "weekly"
53 changes: 0 additions & 53 deletions .github/workflows/build.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/build_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build main
on:
push:
branches-ignore:
- "R/**"
- "r/**"
- "python/**"
- "scala/**"
pull_request:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
python: [ 3.10.12 ]
numpy: [ 1.22.4 ]
gdal: [ 3.4.1 ]
spark: [ 3.4.1 ]
R: [ 4.2.2 ]
steps:
- name: checkout code
uses: actions/checkout@v2
- name: build scala
uses: ./.github/actions/scala_build
- name: build python
uses: ./.github/actions/python_build
- name: build R
uses: ./.github/actions/r_build
- name: upload artefacts
uses: ./.github/actions/upload_artefacts
30 changes: 30 additions & 0 deletions .github/workflows/build_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build_python
# build for python, skip scala tests and R build
on:
push:
branches:
- "python/**"

jobs:
build:
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
python: [ 3.10.12 ]
numpy: [ 1.22.4 ]
gdal: [ 3.4.1 ]
spark: [ 3.4.1 ]
R: [ 4.2.2 ]
steps:
- name: checkout code
uses: actions/checkout@v2
- name: build scala with skipping tests
uses: ./.github/actions/scala_build
with:
skip_tests: "true"
- name: build python
uses: ./.github/actions/python_build
- name: upload artefacts
uses: ./.github/actions/upload_artefacts
31 changes: 31 additions & 0 deletions .github/workflows/build_r.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build_R
# build for R, skip scala tests and python build
on:
push:
branches:
- 'r/**'
- 'R/**'

jobs:
build:
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
python: [ 3.10.12 ]
numpy: [ 1.22.4 ]
gdal: [ 3.4.1 ]
spark: [ 3.4.1 ]
R: [ 4.2.2 ]
steps:
- name: checkout code
uses: actions/checkout@v2
- name: build scala with skipping tests
uses: ./.github/actions/scala_build
with:
skip_tests: 'true'
- name: build r artefacts
uses: ./.github/actions/r_build
- name: upload artefacts
uses: ./.github/actions/upload_artefacts
29 changes: 29 additions & 0 deletions .github/workflows/build_scala.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build_scala
on:
push:
branches:
- "scala/**"

jobs:
build:
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
python: [ 3.10.12 ]
numpy: [ 1.22.4 ]
gdal: [ 3.4.1 ]
spark: [ 3.4.1 ]
R: [ 4.2.2 ]
steps:
- name: checkout code
uses: actions/checkout@v2
- name: build scala with tests
uses: ./.github/actions/scala_build
- name: upload artefacts
uses: ./.github/actions/upload_artefacts
- name: Publish test coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Loading
Loading