Skip to content

Tolerate timestamps w/ truncated nanos.#1785

Merged
tseaver merged 2 commits intogoogleapis:masterfrom
tseaver:1783-timestamp_nanos_truncated
May 12, 2016
Merged

Tolerate timestamps w/ truncated nanos.#1785
tseaver merged 2 commits intogoogleapis:masterfrom
tseaver:1783-timestamp_nanos_truncated

Conversation

@tseaver
Copy link
Copy Markdown
Contributor

@tseaver tseaver commented May 10, 2016

Closes #1783.

@tseaver tseaver added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. api: core labels May 10, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 10, 2016
with self.assertRaises(ValueError):
self._callFUT(dt_str)
truncateds_and_micros = [
('12345678', 123456),

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@rimey
Copy link
Copy Markdown
Contributor

rimey commented May 10, 2016

I don't have the bandwidth right now to follow this properly, but have you guys looked at the proto3 JSON mapping spec for Timestamp and the Timestamp class in google.protobuf. Could we use that library's support for JSON serialization and deserialization of the well-known type Timestamp?

@dhermes
Copy link
Copy Markdown
Contributor

dhermes commented May 10, 2016

Possibly, the phrase

Uses RFC 3339, where generated output will always be Z-normalized and uses 3, 6 or 9 fractional digits.

may actually shed some light on what we've seen empirically.

@tseaver
Copy link
Copy Markdown
Contributor Author

tseaver commented May 12, 2016

@dhermes Seems like you didn't find a counter-example to the "truncate/floor to micros" bit.

@dhermes
Copy link
Copy Markdown
Contributor

dhermes commented May 12, 2016

Yeah LGTM

@tseaver tseaver merged commit cd8e645 into googleapis:master May 12, 2016
@tseaver tseaver deleted the 1783-timestamp_nanos_truncated branch May 12, 2016 23:00
@tseaver tseaver mentioned this pull request May 16, 2016
parthea pushed a commit that referenced this pull request Mar 6, 2026
…tamp_params.py` (#1785)

* Updates file

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Correcting RowIterator

* Correcting variable names

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Tim Swast <swast@google.com>
chalmerlowe pushed a commit that referenced this pull request Mar 26, 2026
PR created by the Librarian CLI to generate Cloud Client Libraries code
from protos.

BEGIN_COMMIT

BEGIN_NESTED_COMMIT
feat: Added a new field `ComposeObjectRequest.delete_source_objects`
field


PiperOrigin-RevId: 863087065
Library-IDs: google-cloud-storage
Source-link:
[googleapis/googleapis@51ff87f4](googleapis/googleapis@51ff87f4)
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: Updated documentation for `BidiReadObject`, `ReadObjectRequest`,
and `ObjectContexts`


PiperOrigin-RevId: 863087065
Library-IDs: google-cloud-storage
Source-link:
[googleapis/googleapis@51ff87f4](googleapis/googleapis@51ff87f4)
END_NESTED_COMMIT

END_COMMIT

This pull request is generated with proto changes between

[googleapis/googleapis@5400ccce](googleapis/googleapis@5400ccc)
(exclusive) and

[googleapis/googleapis@51ff87f4](googleapis/googleapis@51ff87f)
(inclusive).

Librarian Version: v1.0.2-0.20260309131826-42ac5c451239
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:8e2c32496077054105bd06c54a59d6a6694287bc053588e24debe6da6920ad91
parthea pushed a commit that referenced this pull request Apr 1, 2026
… inconsistency with pandas (#1785)

* fix: read_csv with both index_col and use_cols inconsistent with pandas

* ensure columns is not list type and avoid flacky ordered of columns

* add docstring for index_col_in_columns and fix tests

---------

Co-authored-by: Tim Sweña (Swast) <swast@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: core cla: yes This human has signed the Contributor License Agreement. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants