Skip to content

Conversation

@eric-maynard
Copy link
Contributor

After #1675, we now generate the Python client on-demand when it's needed by tests or the CLI. With this, we can safely remove the Python client from being tracked in the repo and add its files to .gitignore

Fixes #755

Copy link
Contributor

@HonahX HonahX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM! Just one comment about installation experience

@@ -30,14 +30,17 @@ for arg in "$@"; do
fi
done

# Check if the python client needs regeneration
if [ "$repair" == true ] || [ ! -f "${dir}/client/python/polaris/catalog/__init__.py" ]; then
./gradlew regeneratePythonClient
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generation will likely fails if user use MacOS, due to the .DS_Store file thing : (.

This is not our fault, but to ensure a smoother installation experiences, shall we consider cleaning the folder before regenerating here or add .DS_Store, poetry.lock to the EXCLUDE_PATHS/EXCLUDE_EXTENSION in the regenerate.sh?

@HonahX
Copy link
Contributor

HonahX commented Jun 6, 2025

We may also need to update the Spark Getting-Started example's Dockerfile to run the regenerate.sh

COPY --chown=jovyan client /home/jovyan/client
COPY --chown=jovyan regtests/requirements.txt /tmp
RUN pip install -r /tmp/requirements.txt && \
cd client/python && poetry lock && \
python3 -m poetry install && \
pip install -e .
. It currently use the client code in the main branch.

@eric-maynard
Copy link
Contributor Author

Good catch @HonahX, I tried adding it here:
db1ae5a

@eric-maynard eric-maynard requested a review from HonahX June 9, 2025 16:51
@eric-maynard eric-maynard force-pushed the ignore-python-client branch from 01c4513 to 1e3a4fe Compare June 11, 2025 16:22
Copy link

@sfc-gh-jojiang sfc-gh-jojiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for removing and updating the getting-started examples. I think we can also move the auto-generated doc and test too, probably in a follow-up PR.

@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Jun 11, 2025
@HonahX HonahX merged commit 3958ded into apache:main Jun 11, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Jun 11, 2025
snazy added a commit to snazy/polaris that referenced this pull request Nov 20, 2025
* main: Update dependency io.projectreactor.netty:reactor-netty-http to v1.2.7 (apache#1845)

* docs: fix broken 'Polaris Overview' link in README.md (apache#1846)

docs: fix broken 'Polaris Overview' link in README.md

Co-authored-by: Joy Haldar <[email protected]>

* Update spark client license (apache#1839)

* Update LICENCE (apache#1851)

* Add Yun Zou as the new committer

Co-authored-by: Yufei Gu <yufei.apache.org>

* main: Update docker.io/jaegertracing/all-in-one Docker tag to v1.70.0 (apache#1853)

* main: Update dependency io.opentelemetry.semconv:opentelemetry-semconv to v1.34.0 (apache#1850)

* main: Update dependency boto3 to v1.38.34 (apache#1852)

* main: Update dependency org.postgresql:postgresql to v42.7.7 (apache#1859)

* [SPEC] Add base-location keyword for GenericTable API (apache#1543)

* Update LICENSE for binary distributions (apache#1855)

* Add integration tests to Python Client (apache#1856)

* Update JDBC Getting-started example's README.md to use localhost for curl commands (apache#1872)

* Remove PolarisConfiguration.loadConfig (v2) (apache#1858)

* Enhance EclipseLink quickstart (apache#1870)

1. Update the name catalog name used to `quickstart_catalog` from `polaris` to make it consistent
2. Update the name of `eclipselink-trino-1` to `polaris-trino-1`
3. make the polaris server url consistent with using `localhost` to avoid failures

* Remove generated Python client from git tracking (apache#1810)

After apache#1675, we now generate the Python client on-demand when it's needed by tests or the CLI. With this, we can safely remove the Python client from being tracked in the repo and add its files to .gitignore

* Fix telemetry quickstart example for 1.0 release (apache#1873)

* main: Update gradle/actions digest to ac638b0 (apache#1877)

* main: Update dependency boto3 to v1.38.35 (apache#1874)

* Removing star import and adding errorprone rule (apache#1831)

Fixes apache#1100

* NoSQL: merge related changes

* Last merged commit 0faf948

---------

Co-authored-by: Mend Renovate <[email protected]>
Co-authored-by: Joy Haldar <[email protected]>
Co-authored-by: Joy Haldar <[email protected]>
Co-authored-by: gh-yzou <[email protected]>
Co-authored-by: Yufei Gu <[email protected]>
Co-authored-by: Yun Zou <[email protected]>
Co-authored-by: Honah (Jonas) J. <[email protected]>
Co-authored-by: Eric Maynard <[email protected]>
Co-authored-by: William Hyun <[email protected]>
Co-authored-by: gfakbar20 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generated files in regtests/client/python/polaris

3 participants