mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2024-11-22 09:06:41 +03:00
Fix tests that fail on older ClickHouse versions
This commit is contained in:
parent
0c2d0f0ffd
commit
b2af10b11c
|
@ -443,7 +443,7 @@ class F(Cond, FunctionOperatorsMixin, metaclass=FMeta):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def toISOWeek(d, timezone=''):
|
def toISOWeek(d, timezone=''):
|
||||||
return F('toISOWeek', d, timezone)
|
return F('toISOWeek', d, timezone) if timezone else F('toISOWeek', d)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def toDayOfYear(d):
|
def toDayOfYear(d):
|
||||||
|
@ -531,15 +531,15 @@ class F(Cond, FunctionOperatorsMixin, metaclass=FMeta):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def toYYYYMM(dt, timezone=''):
|
def toYYYYMM(dt, timezone=''):
|
||||||
return F('toYYYYMM', dt, timezone)
|
return F('toYYYYMM', dt, timezone) if timezone else F('toYYYYMM', dt)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def toYYYYMMDD(dt, timezone=''):
|
def toYYYYMMDD(dt, timezone=''):
|
||||||
return F('toYYYYMMDD', dt, timezone)
|
return F('toYYYYMMDD', dt, timezone) if timezone else F('toYYYYMMDD', dt)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def toYYYYMMDDhhmmss(dt, timezone=''):
|
def toYYYYMMDDhhmmss(dt, timezone=''):
|
||||||
return F('toYYYYMMDDhhmmss', dt, timezone)
|
return F('toYYYYMMDDhhmmss', dt, timezone) if timezone else F('toYYYYMMDDhhmmss', dt)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def toRelativeYearNum(d, timezone=''):
|
def toRelativeYearNum(d, timezone=''):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user