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

Add a SparkSessionExt createDS method #28

Closed
MrPowers opened this issue Apr 8, 2018 · 1 comment
Closed

Add a SparkSessionExt createDS method #28

MrPowers opened this issue Apr 8, 2018 · 1 comment

Comments

@MrPowers
Copy link
Owner

MrPowers commented Apr 8, 2018

The createDF method is very useful.

I think a createDS method is needed as well, so we don't have to do this:

val sourceDS = spark.createDataset[Person](
  Seq(
    Person("Alice", 12),
    Person("Bob", 17)
  )
)

I'd rather do this:

val sourceDS = spark.createDS[Person](
  List(
    ("Alice", 12),
    ("Bob", 17)
  )
)
@MrPowers
Copy link
Owner Author

Meh, this looks like a nice to have & is not nearly as important as createDF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant