Skip to content

Always create hive target directory if not present#16590

Merged
rschlussel merged 4 commits intoprestodb:masterfrom
rschlussel:fix-empty-bucketed-table
Aug 11, 2021
Merged

Always create hive target directory if not present#16590
rschlussel merged 4 commits intoprestodb:masterfrom
rschlussel:fix-empty-bucketed-table

Conversation

@rschlussel
Copy link
Contributor

@rschlussel rschlussel commented Aug 10, 2021

#16456 broke creation of empty
unpartitioned bucketed tables if they weren't using a temporary staging
directory, as the target directory would not get created.

Test plan - Unit test

== NO RELEASE NOTE ==

@rschlussel rschlussel force-pushed the fix-empty-bucketed-table branch 2 times, most recently from e257f3b to 676cb7e Compare August 10, 2021 22:40
Copy link
Contributor

@NikhilCollooru NikhilCollooru left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

Choose a reason for hiding this comment

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

accidental change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

was automatically reformatted by intellij. figured it was better to commit the autoformatting changes than fight with it all the time.

Copy link

Choose a reason for hiding this comment

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

maybe && directory.isDirectory() as well?

@rschlussel rschlussel force-pushed the fix-empty-bucketed-table branch 3 times, most recently from 5781cf5 to b7e15b7 Compare August 11, 2021 14:51
prestodb#16456 broke creation of empty
unpartitioned bucketed tables if they weren't using a temporary staging
directory, as the target directory would not get created.
@rschlussel rschlussel force-pushed the fix-empty-bucketed-table branch from b7e15b7 to ec0557e Compare August 11, 2021 15:24
@rschlussel rschlussel merged commit 84247f7 into prestodb:master Aug 11, 2021
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.

3 participants