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

Support partitionBy with Rikai dataframe writer in Spark #635

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

eddyxu
Copy link
Collaborator

@eddyxu eddyxu commented Apr 19, 2022

df.write.rikai() supports partitionBy(col, ...)

@eddyxu
Copy link
Collaborator Author

eddyxu commented Apr 19, 2022

Closes #634

case Some(cols) =>
Some(
cols
.substring(1, cols.length - 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this subtring here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value in parameters: Map[string, string] is something like

Map(__partition_columns -> ["label"], path -> /var/folders/m1/vyb5yj4n5cb17gv371g09k280000gn/T/rikai6565224676268032985/dataset)

the string value includes double quote

@eddyxu eddyxu merged commit 70e1ccb into eto-ai:main Apr 19, 2022
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

Successfully merging this pull request may close these issues.

2 participants