Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Cortex.States.ClickHouse/ClickHouseSchemaManager.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ClickHouse.Client.ADO.Parameters;
using ClickHouse.Client.ADO;
using ClickHouse.Driver.ADO.Parameters;
using ClickHouse.Driver.ADO;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down Expand Up @@ -199,7 +199,7 @@ private string GetClickhouseScalarType(Type type)
if (type == typeof(bool))
return "UInt8"; // or use Int8, but bool->UInt8 is common
if (type == typeof(DateTime))
return "DateTime64(3)";
return "DateTime64(3, 'UTC')"; // Use UTC for deterministic behavior regardless of server timezone
if (type == typeof(decimal))
return "Decimal(18,4)"; // adjust as needed
if (type == typeof(double))
Expand Down
4 changes: 2 additions & 2 deletions src/Cortex.States.ClickHouse/ClickHouseStateStore.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ClickHouse.Client.ADO.Parameters;
using ClickHouse.Client.ADO;
using ClickHouse.Driver.ADO.Parameters;
using ClickHouse.Driver.ADO;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ClickHouse.Client" Version="7.13.1" />
<PackageReference Include="ClickHouse.Driver" Version="1.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down