mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
fix build error
This commit is contained in:
parent
d213500a3e
commit
4aeadf3967
@ -76,7 +76,10 @@ void registerInputFormatRegexp(FormatFactory & factory);
|
||||
void registerInputFormatJSONAsString(FormatFactory & factory);
|
||||
void registerInputFormatLineAsString(FormatFactory & factory);
|
||||
void registerInputFormatCapnProto(FormatFactory & factory);
|
||||
|
||||
#if USE_HIVE
|
||||
void registerInputFormatHiveText(FormatFactory & factory);
|
||||
#endif
|
||||
|
||||
/// Non trivial prefix and suffix checkers for disabling parallel parsing.
|
||||
void registerNonTrivialPrefixAndSuffixCheckerJSONEachRow(FormatFactory & factory);
|
||||
@ -148,7 +151,9 @@ void registerFormats()
|
||||
registerInputFormatRegexp(factory);
|
||||
registerInputFormatJSONAsString(factory);
|
||||
registerInputFormatLineAsString(factory);
|
||||
#if USE_HIVE
|
||||
registerInputFormatHiveText(factory);
|
||||
#endif
|
||||
|
||||
registerInputFormatCapnProto(factory);
|
||||
|
||||
|
@ -29,7 +29,7 @@ namespace ErrorCodes
|
||||
|
||||
bool RemoteFileMetadata::load(const std::filesystem::path & local_path)
|
||||
{
|
||||
auto log = &Poco::Logger::get("RemoteFileMetadata");
|
||||
auto * log = &Poco::Logger::get("RemoteFileMetadata");
|
||||
if (!std::filesystem::exists(local_path))
|
||||
{
|
||||
LOG_ERROR(log, "file path not exists:{}", local_path.string());
|
||||
@ -49,13 +49,14 @@ bool RemoteFileMetadata::load(const std::filesystem::path & local_path)
|
||||
return true;
|
||||
}
|
||||
|
||||
void RemoteFileMetadata::save(const std::filesystem::path & local_path)
|
||||
void RemoteFileMetadata::save(const std::filesystem::path & local_path) const
|
||||
{
|
||||
std::ofstream meta_file(local_path.string(), std::ios::out);
|
||||
meta_file << toString();
|
||||
meta_file.close();
|
||||
}
|
||||
String RemoteFileMetadata::toString()
|
||||
|
||||
String RemoteFileMetadata::toString() const
|
||||
{
|
||||
Poco::JSON::Object jobj;
|
||||
jobj.set("schema", schema);
|
||||
|
@ -49,8 +49,8 @@ struct RemoteFileMetadata
|
||||
}
|
||||
|
||||
bool load(const std::filesystem::path & local_path);
|
||||
void save(const std::filesystem::path & local_path);
|
||||
String toString();
|
||||
void save(const std::filesystem::path & local_path) const;
|
||||
String toString() const;
|
||||
|
||||
String schema; // Hive, S2 etc.
|
||||
String cluster;
|
||||
@ -103,7 +103,7 @@ public:
|
||||
inline size_t size() const { return current_offset; }
|
||||
|
||||
inline const std::filesystem::path & getLocalPath() { return local_path; }
|
||||
inline const String & getRemotePath() { return file_meta_data.remote_path; }
|
||||
inline const String & getRemotePath() const { return file_meta_data.remote_path; }
|
||||
|
||||
inline UInt64 getLastModificationTimestamp() const { return file_meta_data.last_modification_timestamp; }
|
||||
inline void markInvalid()
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include <Processors/Formats/Impl/HiveTextRowInputFormat.h>
|
||||
|
||||
#if USE_HIVE
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user