From 4a6ebee5f61affd37b3473ace07bd6cbbaf2357f Mon Sep 17 00:00:00 2001 From: sfc-gh-ext-simba-hx Date: Tue, 24 Oct 2023 11:26:12 -0700 Subject: [PATCH] fix build issue --- tests/test_unit_file_metadata_init.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/test_unit_file_metadata_init.cpp b/tests/test_unit_file_metadata_init.cpp index df4ff50234..592098da62 100755 --- a/tests/test_unit_file_metadata_init.cpp +++ b/tests/test_unit_file_metadata_init.cpp @@ -12,6 +12,10 @@ #include #include #include +#include +#include +#include "snowflake/IStatementPutGet.hpp" +#include "StatementPutGet.hpp" #define FILES_IN_DIR "file1.csv", "file2.csv", "file3.csv", "file4.csv", "file1.gz" @@ -70,13 +74,18 @@ std::vector getListOfTestFileMatchDir() void test_file_pattern_match_core(std::vector *expectedFiles, const char *filePattern) { + SF_CONNECT *sf = snowflake_init(); + SF_STMT *sfstmt = snowflake_stmt(sf); + std::unique_ptr stmtPutGet = std::unique_ptr + (new Snowflake::Client::StatementPutGet(sfstmt)); + std::vector listTestDir = getListOfTestFileMatchDir(); for (auto testDir : listTestDir) { std::vector smallFileMetadata; std::vector largeFileMetadata; - FileMetadataInitializer initializer(smallFileMetadata, largeFileMetadata); + FileMetadataInitializer initializer(smallFileMetadata, largeFileMetadata, stmtPutGet.get()); initializer.setSourceCompression((char *)"none"); std::string fullFilePattern = testDir + filePattern;