Skip to content

[query] Rewrite ExportEntriesByCol to stage locally#8613

Merged
danking merged 2 commits intohail-is:masterfrom
tpoterba:eebc-stage-locally
Apr 26, 2020
Merged

[query] Rewrite ExportEntriesByCol to stage locally#8613
danking merged 2 commits intohail-is:masterfrom
tpoterba:eebc-stage-locally

Conversation

@tpoterba
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Collaborator

@konradjk konradjk left a comment

Choose a reason for hiding this comment

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

Works perfectly!!! My understanding of the Scala is rudimentary, but it all seems sensible, and is passing our real-world test.

new OutputStreamWriter(bcFS.value.create(partFolder + "/" + j.toString + extension), "UTF-8")
val filePaths = Array.tabulate(endIdx - startIdx) { j =>
val finalPath = partFolder + "/" + j.toString + extension
val tempPath = bcFS.value.getTemporaryFile("file:///tmp", suffix=Some(extension))
Copy link
Copy Markdown
Contributor

@akotlar akotlar Apr 23, 2020

Choose a reason for hiding this comment

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

this is going to conflict with cotton's fs change I believe, will need to be extension=

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actually, now it will be createTmpPath, which lives on ExecuteContext

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

will tag this as WIP, will be easier for me to rebase than him.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks for the heads up

@tpoterba tpoterba added the WIP label Apr 23, 2020
@tpoterba tpoterba force-pushed the eebc-stage-locally branch from e816620 to 3beb5df Compare April 24, 2020 14:41
@tpoterba tpoterba removed the WIP label Apr 24, 2020
@danking danking merged commit 75aed78 into hail-is:master Apr 26, 2020
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.

4 participants