Skip to content

Commit

Permalink
Update chsql_extension.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Jan 3, 2025
1 parent 4f4fbdd commit 08acb5e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions chsql/src/chsql_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

// OpenSSL linked through vcpkg
#include <openssl/opensslv.h>
#include "parquet_ordered_scan.cpp"

#if !defined(EMSCRIPTEN) && !defined(MINGW)
#include "parquet_ordered_scan.cpp"
#include "clickhouse_scan.hpp"
#endif

Expand Down Expand Up @@ -230,13 +230,16 @@ static void LoadInternal(DatabaseInstance &instance) {
auto table_info = DefaultTableFunctionGenerator::CreateTableMacroInfo(chsql_table_macros[index]);
ExtensionUtil::RegisterFunction(instance, *table_info);
}

#if !defined(EMSCRIPTEN)
// Parquet Reader
ExtensionUtil::RegisterFunction(instance, ReadParquetOrderedFunction());
// Flock
ExtensionUtil::RegisterFunction(instance, DuckFlockTableFunction());

#if !defined(EMSCRIPTEN) && !defined(MINGW)
// Clickhouse Scan for supported platforms
RegisterClickHouseScanFunction(instance);
// Flock Table
ExtensionUtil::RegisterFunction(instance, DuckFlockTableFunction());
#if !defined(MINGW)
// Clickhouse Scan for supported platforms
RegisterClickHouseScanFunction(instance);
#endif
#endif

}
Expand Down

0 comments on commit 08acb5e

Please sign in to comment.