Open mr-karan opened 1 week ago
I have the same issue with the trino datasource.
I think I have traced the issue to
Here the date (rawValues
) is still a string and it results in '0' being inserted in the parquet file. For my case new date()
is happy with the string so I could move forward with
const values = rawValues.map((v) => (Math.floor(new Date(v).getTime())));
return vectorFromArray(values, new TimestampMillisecond());
Steps To Reproduce
Steps we can take to reproduce the issue you're seeing. Sample data is helpful.
I have a local
sqlite3
DB, with the following schema:Querying the table, I can see the dates being shown properly:
However, with evidence.dev, I am puzzled as to why
created_at
is coming as epoch.Here's the
index.md
:And I have one
.sql
file insources/expenses/all.sql
:Environment
node -v
): v20.13.0npm -v
): 10.5.2