Skip to content

Commit 22fe98a

Browse files
committed
Guard AzureOptions from windows
1 parent 64bb4eb commit 22fe98a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bodo/io/_fs_io.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,15 @@ void extract_fs_dir_path(const char *_path_name, bool is_parallel,
100100
} else if ((strncmp(_path_name, "abfs://", 7) == 0 ||
101101
strncmp(_path_name, "abfss://", 8) == 0)) {
102102
*fs_option = Bodo_Fs::abfs;
103+
#ifndef _WIN32
103104
auto parsed_opt =
104105
arrow::fs::AzureOptions::FromUri(_path_name, path_name);
105106
CHECK_ARROW(parsed_opt.status(), "FromUri failed for Azure File System",
106107
"abfs"); // Check if parsing the URI was successful
108+
#else
109+
throw std::runtime_error(
110+
"extract_fs_dir_path: Azure File System not supported on Windows.");
111+
#endif
107112
} else if (strncmp(_path_name, "hdfs://", 7) == 0) {
108113
*fs_option = Bodo_Fs::hdfs;
109114
arrow::Result<std::shared_ptr<arrow::fs::FileSystem>> tempRes =

0 commit comments

Comments
 (0)