Tom-Newton commented on code in PR #45021: URL: https://github.com/apache/arrow/pull/45021#discussion_r1885669198
########## cpp/src/arrow/filesystem/azurefs.cc: ########## @@ -148,8 +148,10 @@ Status AzureOptions::ExtractFromUriQuery(const Uri& uri) { ARROW_ASSIGN_OR_RAISE(background_writes, ::arrow::internal::ParseBoolean(kv.second)); } else { - return Status::Invalid( - "Unexpected query parameter in Azure Blob File System URI: '", kv.first, "'"); + // Assume these are part of a SAS token. Its not ideal to make such an assumption + // but given that a SAS token is a complex set of URI parameters, that could be + // tricky to exhaustively list I think its the best option. + credential_kind = CredentialKind::kSasToken; Review Comment: I think that doc is only for user delegated SAS tokens so I unioned it with the parameters for account and service SAS tokens and hopefully the spec is slowly changing. I wasn't really confident on the best way to define a constant set of strings to do `contains` checks against in C++. Since there are only 27 values, I ended up with a `constexpr` array and `std::find` but please let me know if this is not a good option. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org