sjrusso8 / spark-connect-rs

Apache Spark Connect Client for Rust
https://docs.rs/spark-connect-rs
Apache License 2.0
76 stars 13 forks source link

feat: better generic args #8

Closed sjrusso8 closed 6 months ago

sjrusso8 commented 6 months ago

Description

feat(generics): better generic args

Example

Allow for statements like this in the select method.

df.select(["id", "value"])

// or like this

df.select([col("id"), col("value")])

// or like this too

df.select(vec![col("id"), col("value")])

All of which are translated to a vector expression.

Also there is better consistently for all function inputs. The default is &str for everything where a string input is needed. So all arguments that were Vec<String> are now Vec<&str>, etc.