questdb / questdb/py-questdb-client

support datetime[us]

Open
#104 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
71
Forks
14
Avg merge
1h 7m
Merged PRs (30d)
1

Description

Repro:

https://github.com/questdb/py-questdb-client/tree/nw_datetime_us

from questdb.ingress import Sender, TimestampNanos
import pandas as pd


df = pd.DataFrame({'x': [1,2,3]})
df['timestamp'] = pd.Timestamp.now()

with Sender.from_conf("http::addr=localhost:9000;") as sender:
    sender.dataframe(df, table_name='abcd', at='timestamp')
questdb.ingress.IngressError: Unsupported dtype datetime64[us] for column 'timestamp'. Raise an issue if you think it should be supported

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Sender.dataframe entry point and reproduce the example using pandas datetime64[us] data, consulting the nw_datetime_us branch linked in the issue. Trace the dtype handling that raises the unsupported-dtype error; done means the example ingests successfully without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.