microsoft / hyperspace

An open source indexing subsystem that brings index-based query acceleration to Apache Spark™ and big data workloads.
https://aka.ms/hyperspace
Apache License 2.0
424 stars 115 forks source link

Add python binding for ZOrderCoveringIndexConfig #519

Closed sezruby closed 2 years ago

sezruby commented 2 years ago

What is the context for this pull request?

What changes were proposed in this pull request?

Add python binding for ZOrderCoveringIndexConfig to create ZOrderCoveringIndex via python API.

Example:

from hyperspace import Hyperspace
from hyperspace import ZOrderCoveringIndexConfig
hs = Hyperspace(spark)
idxConfig = ZOrderCoveringIndexConfig("idxName", ['colA', 'colB'], ['colC'])
df = spark.read.parquet("path/to/data")
hs.createIndex(df, idxConfig)

Does this PR introduce any user-facing change?

Yes

How was this patch tested?

Added a python test