alamb commented on code in PR #14657:
URL: https://github.com/apache/datafusion/pull/14657#discussion_r1966506454


##########
docs/source/user-guide/crate-configuration.md:
##########
@@ -25,7 +25,47 @@ control DataFusion's behavior.
 
 [configuration settings]: configs.md
 
-## Add latest non published DataFusion dependency
+## Crate features
+
+The `datafusion` crate has several [features] which can be specified in your 
`Cargo.toml`. For example
+to enable support for `avro` you can put the following in your `Cargo.toml`:
+
+```toml
+datafusion = { version = "45", features = ["avro"] }
+```
+
+[features]: https://doc.rust-lang.org/cargo/reference/features.html
+
+You can always check the [Cargo.toml] file for the most up to date list of 
features.
+
+[cargo.toml]: 
https://github.com/apache/datafusion/blob/main/datafusion/core/Cargo.toml#L39
+
+### Default features:
+
+- `nested_expressions`: functions for working with nested type function such 
as `array_to_string`

Review Comment:
   Great idea -- done in 66541689a



##########
docs/source/user-guide/crate-configuration.md:
##########
@@ -25,7 +25,47 @@ control DataFusion's behavior.
 
 [configuration settings]: configs.md
 
-## Add latest non published DataFusion dependency
+## Crate features
+
+The `datafusion` crate has several [features] which can be specified in your 
`Cargo.toml`. For example
+to enable support for `avro` you can put the following in your `Cargo.toml`:
+
+```toml
+datafusion = { version = "45", features = ["avro"] }
+```
+
+[features]: https://doc.rust-lang.org/cargo/reference/features.html
+
+You can always check the [Cargo.toml] file for the most up to date list of 
features.
+
+[cargo.toml]: 
https://github.com/apache/datafusion/blob/main/datafusion/core/Cargo.toml#L39
+
+### Default features:
+
+- `nested_expressions`: functions for working with nested type function such 
as `array_to_string`
+- `compression`: reading files compressed with `xz2`, `bzip2`, `flate2`, and 
`zstd`
+- `crypto_expressions`: cryptographic functions such as `md5` and `sha256`
+- `datetime_expressions`: date and time functions such as `to_timestamp`
+- `encoding_expressions`: `encode` and `decode` functions
+- `math_expressions`: `sqrt` and other math functions

Review Comment:
   That was an excellent call. I fixed it in df190ada7
   
   However, I think since the subcrates already have their own default 
features, it is likely not possible to remove these various functon packages 🤔 
maybe we should fix that in a following issue



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to