-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-41990: [C++] Fix AzureFileSystem compilation on Windows #48971
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
Open
nateprewitt
wants to merge
8
commits into
apache:main
Choose a base branch
from
nateprewitt:fix-msvc-azure-destructor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+35
−4
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cac716c
Fix MSVC build for Azure
nateprewitt 50d2511
Add build tooling for Azure SDK
nateprewitt 1f9b988
Update cpp/src/arrow/filesystem/azurefs.cc
nateprewitt 2ba5b3d
Update cpp/cmake_modules/ThirdpartyToolchain.cmake
nateprewitt a81ac55
Use OVERRIDE_FIND_PACKAGE to address Azure SDK WIL requirement
nateprewitt 3f5cea2
Alphabetize variables and add them to DEPENDENCIES
nateprewitt 7754f6d
Remove unneeded comments and use = default for destructor
nateprewitt c50396c
Change kMaxBlockSizeBytes to Long Long for cross platform compatibility
nateprewitt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -970,7 +970,7 @@ Status StageBlock(Blobs::BlockBlobClient* block_blob_client, const std::string& | |
| /// Writes will be buffered up to this size (in bytes) before actually uploading them. | ||
| static constexpr int64_t kBlockUploadSizeBytes = 10 * 1024 * 1024; | ||
| /// The maximum size of a block in Azure Blob (as per docs). | ||
| static constexpr int64_t kMaxBlockSizeBytes = 4UL * 1024 * 1024 * 1024; | ||
| static constexpr int64_t kMaxBlockSizeBytes = 4LL * 1024 * 1024 * 1024; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. normally I wouldn't consider |
||
|
|
||
| /// This output stream, similar to other arrow OutputStreams, is not thread-safe. | ||
| class ObjectAppendStream final : public io::OutputStream { | ||
|
|
@@ -1362,7 +1362,7 @@ Result<HNSSupport> CheckIfHierarchicalNamespaceIsEnabled( | |
| // without hierarchical namespace enabled. | ||
| directory_client.GetAccessControlList(); | ||
| return HNSSupport::kEnabled; | ||
| } catch (std::out_of_range& exception) { | ||
| } catch (const std::out_of_range&) { | ||
| // Azurite issue detected. | ||
| DCHECK(IsDfsEmulator(options)); | ||
| return HNSSupport::kDisabled; | ||
|
|
@@ -2499,7 +2499,7 @@ class AzureFileSystem::Impl { | |
| try { | ||
| auto delete_result = deferred_response.GetResponse(); | ||
| success = delete_result.Value.Deleted; | ||
| } catch (const Core::RequestFailedException& exception) { | ||
| } catch (const Core::RequestFailedException&) { | ||
| success = false; | ||
| } | ||
| if (!success) { | ||
|
|
@@ -3218,6 +3218,8 @@ class AzureFileSystem::Impl { | |
| std::atomic<LeaseGuard::SteadyClock::time_point> LeaseGuard::latest_known_expiry_time_ = | ||
| SteadyClock::time_point{SteadyClock::duration::zero()}; | ||
|
|
||
| AzureFileSystem::~AzureFileSystem() = default; | ||
|
|
||
| AzureFileSystem::AzureFileSystem(std::unique_ptr<Impl>&& impl) | ||
| : FileSystem(impl->io_context()), impl_(std::move(impl)) { | ||
| default_async_is_sync_ = false; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.