create table public.tick_indexes (
timestamp bigint not null,
tick_index bigint not null,
window bigint not null,
sma double precision not null,
created_at timestamp with time zone not null default CURRENT_TIMESTAMP
);
create index tick_indexes_created_at_idx on tick_indexes using btree (created_at);
Error
[bun] 11:32:19.172 SELECT 94.896ms SELECT * FROM "tick_indexes_1m" WHERE ("window" = '60') ORDER BY "bucket" ASC LIMIT 100 *fmt.wrapError: sql: Scan error on column index 2, name "tick_index": strconv.ParseInt: parsing "18.0000000000000000": invalid syntax
This issue has been automatically marked as stale because it has not had activity in the last 30 days. If there is no update within the next 7 days, this issue will be closed.
Model
Method
Table DDL
Error