Skip to content

Conversation

panqingfeng
Copy link
Contributor

  1. Support CK DateTime as timestamp

  2. Change the time range filter from
    PREWHERE ( toUnixTimestamp64Milli(@timestampDateTime) <= 1697892100000 AND toUnixTimestamp64Milli(@timestampDateTime) >= 1697891200000 )
    to
    PREWHERE ( @timestampDateTime <= toDateTime64(1697892100000/1000.0) AND @timestampDateTime >= toDateTime64(1697891200000/1000.0) )

which may have better performance if @timestampDateTime is indexed

2. Change time range filter from
PREWHERE (  toUnixTimestamp64Milli(`@timestampDateTime`) <= 1697892100000  AND  toUnixTimestamp64Milli(`@timestampDateTime`) >= 1697891200000  )
to
PREWHERE (  `@timestampDateTime` <= toDateTime64(1697892100000/1000.0)  AND  `@timestampDateTime` >= toDateTime64(1697891200000/1000.0)  )
which may has better performance if `@timestampDateTime` is indexed
@famosss famosss merged commit 55f7919 into TongchengOpenSource:main Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants