forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #636 from Altinity/project-antalya-24.12.2_metadat…
…a_cache_fixes_1 use parquet metadata cache for parquetmetadata format as well
- Loading branch information
Showing
11 changed files
with
140 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <Processors/Formats/Impl/ParquetFileMetaDataCache.h> | ||
|
||
#ifdef USE_PARQUET | ||
|
||
namespace DB | ||
{ | ||
|
||
ParquetFileMetaDataCache::ParquetFileMetaDataCache() | ||
: CacheBase<String, parquet::FileMetaData>(0) | ||
{} | ||
|
||
ParquetFileMetaDataCache * ParquetFileMetaDataCache::instance() | ||
{ | ||
static ParquetFileMetaDataCache instance; | ||
return &instance; | ||
} | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#pragma once | ||
|
||
#include "config.h" | ||
|
||
#if USE_PARQUET | ||
|
||
namespace parquet | ||
{ | ||
|
||
class FileMetaData; | ||
|
||
} | ||
|
||
#include <Common/CacheBase.h> | ||
|
||
namespace DB | ||
{ | ||
|
||
class ParquetFileMetaDataCache : public CacheBase<String, parquet::FileMetaData> | ||
{ | ||
public: | ||
static ParquetFileMetaDataCache * instance(); | ||
|
||
private: | ||
ParquetFileMetaDataCache(); | ||
}; | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
tests/queries/0_stateless/03299_parquet_object_storage_metadata_cache.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
10 | ||
10 | ||
10 | ||
10 | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters