Skip to content

ARROW-727: [Python] Ensure that NativeFile.write accepts any bytes, unicode, or object providing buffer protocol. Rename build_arrow_buffer to pyarrow.frombuffer#464

Closed
wesm wants to merge 1 commit intoapache:masterfrom
wesm:ARROW-727

Conversation

@wesm
Copy link
Copy Markdown
Member

@wesm wesm commented Mar 30, 2017

No description provided.

…le.write accepts any bytes, unicode, or object providing buffer protocol

Change-Id: I85c54c5e2d146eb16ceb0b87e267385cefe09a90
@wesm
Copy link
Copy Markdown
Member Author

wesm commented Mar 30, 2017

@asfgit asfgit closed this in edd6cfc Mar 30, 2017
@wesm wesm deleted the ARROW-727 branch March 30, 2017 22:43
wesm pushed a commit to wesm/arrow that referenced this pull request Sep 8, 2018
Author: Gidon Gershinsky <gidon@il.ibm.com>

Closes apache#464 from ggershinsky/p1301-crypto-package and squashes the following commits:

42fe125 [Gidon Gershinsky] post-review changes
ad17fbe [Gidon Gershinsky] fix lint issues
b5e40b1 [Gidon Gershinsky] post-review changes
20b496f [Gidon Gershinsky] EncryptionProperties input and other review changes
35a4830 [Gidon Gershinsky] fix import order
b3affc5 [Gidon Gershinsky] change import order
fc5d77d [Gidon Gershinsky] version fix
a11507e [Gidon Gershinsky] 2nd cipher + review comments
63fa9a3 [Gidon Gershinsky] version fix
8e384d4 [Gidon Gershinsky] The C++ implementation of basic AES-GCM encryption and decryption

Change-Id: I5bd536e24041b4a03914381a45f71190a91e67fa
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
This PR adds support for natively fetching `java.time.*` objects through
the JDBC driver.

DateVector
- getObject(LocalDate.class)

DateTimeVector
- getObject(OffsetDateTime.class)
- getObject(LocalDateTime.class)
- getObject(ZonedDateTime.class)
- getObject(Instant.class)

TimeVector
- getObject(LocalTime.class)

This PR also changes the behavior for vectors that include TZ info.
These will now return as `TIMESTAMP_WITH_TIMEZONE`.

The behavior for different ways to access a TimeStampVector are as
follows:

| | Vector with TZ | Vector W/O TZ |

|---------------------------------|------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|
| getTimestamp() | Get timestamp in the vector TZ | Get timestamp in UTC
|
| getTimestamp(calendar) | Get timestamp by adjusting from the vector TZ
to the desired calendar TZ | Get timestamp by adjusting from UTC to the
desired calendar TZ (a bug, IMO) |
| getObject(LocalDateTime.class) | Get LocalDateTime by taking the
timestamp at the vector TZ and taking the "wall-clock" time at that
moment | Treat the epoch value in the vector as the "wall-clock" time |
| getObject(Instant.class) | Get Instant represented by the value in the
vector TZ | Get Instant represented by the value in UTC |
| getObject(OffsetDateTime.class) | Get OffsetDateTime represented by
the value in the vector TZ (will account for daylight adjustment) | Get
OffsetDateTime represented by the value in UTC (will account for
daylight adjustment) |
| getObject(ZonedDateTime.class) | Get ZonedDateTime represented by the
value in the vector at in its TZ | Get ZonedDateTime represented by the
value in the vector at in UTC |

Closes apache#463
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants