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;