MrPowers / bebe

Filling in the Spark function gaps across APIs
50 stars 5 forks source link

Typesafe constructors #1

Closed alfonsorr closed 3 years ago

alfonsorr commented 3 years ago

Great idea this project! I let you something that maybe can fit and improves the type safety of the Column constructors :D It changes the API to reject in compile time the invalid types.

MrPowers commented 3 years ago

This is way better, thank you so much!

I'll create an issue and ping you with another interface I was playing around to instantiate the typed column objects. I wasn't able to get it working, but you're a Scala expert, and I'm sure you'll be able to figure it out with ease ;)