- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 12:52 AM
Is there a way to perform Z-ordering using python? With sql you you should be able to use:
%sql
OPTIMIZE df
ZORDER BY (column)
however I get the error "Table or view 'df' not found in database 'default''" and since I'm not really using sql, I would like to do this with python.....
- Labels:
-
Python
-
Z-ordering
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 10:39 PM
@Lukas Goldschmied
You can find some examples here:
https://docs.databricks.com/delta/optimize.html#language-python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 10:39 PM
@Lukas Goldschmied
You can find some examples here:
https://docs.databricks.com/delta/optimize.html#language-python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2023 12:48 AM
Hey Make sure to check the Delta Documentation :

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2023 01:51 AM
Hi @Lukas Goldschmied
Thank you for posting your question in our community! We are happy to assist you.
To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?
This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!

