Advanced Delta-Lake related tooling based on Apache Spark
Project description
hydro 💧
hydro is a collection of Python-based Apache Spark and Delta Lake extensions.
See Key Functionality for concrete use cases.
Who are hydro's intended users?
hydro is intended to be used by developers and engineers who interact with Delta Lake tables and Spark DataFrames with Python. It can be used by those of all skill levels.
hydro works on the Databricks platform as well as on other platforms where PySpark and Delta Lake can be installed: laptops for example.
Warning ⚠️
hydro is well tested but not battle hardened, yet. Use it at your own risk.
Installation
pip install spark-hydro
Docs 📖
https://christophergrant.github.io/hydro
Key Functionality 🔑
- Correctly perform Slowly Changing Dimensions (SCD) on Delta Lake tables - hydro.delta.scd and hydro.delta.bootstrap_scd2
- Issue queries against Delta Log metadata, quickly and efficiently retrieving file-level metadata even on Petabyte-scale tables - hydro.delta.file_stats, hydro.delta.partition_stats
- Infer the schema of JSON columns - hydro.spark.infer_json_schema
- Drop nested fields from a Spark DataFrame hydro.spark.drop_fields
- Quality of life improvements like hydro.delta.detail_enhanced and hydro.spark.fields
- And more... check the docs!
Contributions ✨
Contributions are welcome.
Please create an issue and discuss before starting work on a feature to make sure that it aligns with the future of the project.
Naming 🤓
hydro
is short for hydrologist, where a hydrologist is a person who studies water and its movement. Delta Lake, Data Lake, Lakehouse => water.
ChatGPT and LLMs 🤖
Some of this project's code and documentation was generated by a Large Language Model (LLM), namely ChatGPT. Some code was even taken verbatim from the AI (with 0 adaptations). Their outputs have been vetted by humans and tested, so don't worry about quality.
Otherwise, we are proud prompt engineers, so we display the prompt that gave us the code in hydro's source (example).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file spark_hydro-0.2.1.tar.gz
.
File metadata
- Download URL: spark_hydro-0.2.1.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | caabc980b88a9bffcea275f344bd7afba9453cfd2f53350841ddeb5a7c1334ff |
|
MD5 | 9cd2bfe9544cb78f2f4d1fc7cce23040 |
|
BLAKE2b-256 | 699c6824b77af4e99553786e4f9512e82ad7fc7133c61b72e593680109c12155 |
File details
Details for the file spark_hydro-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: spark_hydro-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d9d7f20e3990416f9f4900047ab2b6a052c5b70af725f59b42f8b4840e5991f |
|
MD5 | 369c4aaa9c5d0520b12c601a958cc5d3 |
|
BLAKE2b-256 | 60765629334a207df774b84fa2c584bc358d5d428f8cd0d7429549a67e50d01f |