Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make datetime.time json serializable, to string ISO format.#701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
surister wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromfix/datetime-time-serializable

Conversation

@surister
Copy link
Member

Summary of the changes / Why this is an improvement

Fixes#696

Checklist

  • Link to issue this PR refers to (if applicable): Fixes #???

@suristersuristerforce-pushed thefix/datetime-time-serializable branch fromc77c110 toa4fbe65CompareFebruary 25, 2025 08:22
@suristersuristerforce-pushed thefix/datetime-time-serializable branch froma4fbe65 to3b00367CompareFebruary 25, 2025 08:25
@surister
Copy link
MemberAuthor

Docs failing withhttps://cratedb.com/docs/crate/crash/en/latest/objects.inv < Error 503 first byte timeout

request.return_value=fake_response(200)

obj=dt.datetime.now().time()
client.sql("insert into my_table (str_col) values (?)", (obj,))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is not really testing that the time format is correct and understood by CrateDB as it will just take the given string and stores it.

Suggested change
client.sql("insert into my_table (str_col) values (?)", (obj,))
client.sql("SELECT ?::TIMETZ AS t_tz", (obj,))

Additionally, this would test the decoding of aTIMETZ type.

@amotlamotl removed their request for reviewJune 18, 2025 13:14
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@seutseutseut left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

TypeError: Type is not JSON serializable: datetime.time

3 participants

@surister@seut

[8]ページ先頭

©2009-2025 Movatter.jp