mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Fixed DateLUTImpl constructors to avoid accidental copying
Fixed one case of copying DateLUTImpl
This commit is contained in:
parent
228dbf475e
commit
776ce03777
@ -37,7 +37,12 @@ using YearWeek = std::pair<UInt16, UInt8>;
|
|||||||
class DateLUTImpl
|
class DateLUTImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DateLUTImpl(const std::string & time_zone);
|
explicit DateLUTImpl(const std::string & time_zone);
|
||||||
|
|
||||||
|
DateLUTImpl(const DateLUTImpl &) = delete;
|
||||||
|
DateLUTImpl & operator=(const DateLUTImpl &) = delete;
|
||||||
|
DateLUTImpl(const DateLUTImpl &&) = delete;
|
||||||
|
DateLUTImpl & operator=(const DateLUTImpl &&) = delete;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// The order of fields matters for alignment and sizeof.
|
/// The order of fields matters for alignment and sizeof.
|
||||||
|
@ -45,7 +45,7 @@ private:
|
|||||||
|
|
||||||
size_t rows_removed = 0;
|
size_t rows_removed = 0;
|
||||||
Logger * log;
|
Logger * log;
|
||||||
DateLUTImpl date_lut;
|
const DateLUTImpl & date_lut;
|
||||||
|
|
||||||
/// TODO rewrite defaults logic to evaluteMissingDefaults
|
/// TODO rewrite defaults logic to evaluteMissingDefaults
|
||||||
std::unordered_map<String, String> defaults_result_column;
|
std::unordered_map<String, String> defaults_result_column;
|
||||||
|
Loading…
Reference in New Issue
Block a user