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

Hide the parquet/json feature behind our own JSON feature #1307

Merged
merged 2 commits into from
Apr 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ once_cell = "1.16.0"
parking_lot = "0.12"
parquet = { version = "36", features = [
"async",
"json",
"object_store",
], optional = true }
parquet2 = { version = "0.17", optional = true }
Expand Down Expand Up @@ -91,6 +90,7 @@ utime = "0.3"
glibc_version = { path = "../glibc_version", version = "0.1" }

[features]
azure = ["object_store/azure"]
default = ["arrow", "parquet"]
datafusion = [
"dep:datafusion",
Expand All @@ -104,8 +104,14 @@ datafusion = [
"parquet",
]
datafusion-ext = ["datafusion"]
azure = ["object_store/azure"]
gcs = ["object_store/gcp"]
glue = ["s3", "rusoto_glue/rustls"]
glue-native-tls = ["s3-native-tls", "rusoto_glue"]
hdfs = ["datafusion-objectstore-hdfs"]
# used only for integration testing
integration_test = ["fs_extra", "tempdir"]
json = ["parquet/json"]
python = ["arrow/pyarrow"]
s3-native-tls = [
"rusoto_core/native-tls",
"rusoto_credential",
Expand All @@ -124,13 +130,6 @@ s3 = [
"object_store/aws",
"object_store/aws_profile",
]
hdfs = ["datafusion-objectstore-hdfs"]
glue-native-tls = ["s3-native-tls", "rusoto_glue"]
glue = ["s3", "rusoto_glue/rustls"]
python = ["arrow/pyarrow"]

# used only for integration testing
integration_test = ["fs_extra", "tempdir"]

[[bench]]
name = "read_checkpoint"
Expand Down
11 changes: 6 additions & 5 deletions rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@ cargo run --example read_delta_table

## Optional cargo package features

- `s3` - enable the S3 storage backend to work with Delta Tables in AWS S3. Uses [rustls](https://github.com/ctz/rustls).
- `s3-native-tls` - enable the S3 storage backend but rely on OpenSSL.
- `glue` - enable the Glue data catalog to work with Delta Tables with AWS Glue.
- `azure` - enable the Azure storage backend to work with Delta Tables in Azure Data Lake Storage Gen2 accounts.
- `gcs` - enable the Google storage backend to work with Delta Tables in Google Cloud Storage.
- `datafusion` - enable the `datafusion::datasource::TableProvider` trait implementation for Delta Tables, allowing them to be queried using [DataFusion](https://github.com/apache/arrow-datafusion).
- `datafusion-ext` - DEPRECATED: alias for `datafusion` feature
- `parquet2` - use parquet2 for checkpoint deserialization. Since `arrow` and `parquet` features are enabled by default for backwards compatibility, this feature needs to be used with `--no-default-features`.
- `gcs` - enable the Google storage backend to work with Delta Tables in Google Cloud Storage.
- `glue` - enable the Glue data catalog to work with Delta Tables with AWS Glue.
- `hdfs` - enable the HDFS storage backend to work with Delta Tables in HDFS.
- `json` - enable the JSON feature of the `parquet` crate for better JSON interoperability.
- `parquet2` - use parquet2 for checkpoint deserialization. Since `arrow` and `parquet` features are enabled by default for backwards compatibility, this feature needs to be used with `--no-default-features`.
- `s3` - enable the S3 storage backend to work with Delta Tables in AWS S3. Uses [rustls](https://github.com/ctz/rustls).
- `s3-native-tls` - enable the S3 storage backend but rely on OpenSSL.

## Development

Expand Down