Skip to content

Commit

Permalink
adding readme about timestampmillitz
Browse files Browse the repository at this point in the history
  • Loading branch information
Soojin Jeong committed May 5, 2020
1 parent c107317 commit 9ab42e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions athena-federation-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ For those seeking to write their own connectors, we recommend you being by going

### DataTypes

The wire protocol between your connector(s) and Athena is built on Apache Arrow with JSON for request/response structures. As such we make use of Apache Arrow's type system. At this time we support the below Apache Arrow types with plans to add more (e.g. timestamp w/TZ and Map are some of the upcoming additions)
The wire protocol between your connector(s) and Athena is built on Apache Arrow with JSON for request/response structures. As such we make use of Apache Arrow's type system. At this time we support the below Apache Arrow types with plans to add more.

The below table lists the supported Apache Arrow types as well as the corresponding java type you can use to 'set' values via Block.setValue(...) or BlockUtils.setValue(...). It is important to remember that while this SDK offers a number of convenience helpers to make working with Apache Arrow easier for the beginner you always have the option of using Apache Arrow directly. Using Arrow Directly can offer improved performance as well as more options for how you handle type conversion and coercion.

|Apache Arrow Data Type|Java Type|
|-------------|-----------------|
|BIT|int, boolean|
|DATEMILLI|Date, long, int|
|DATEMILLI|Date, long|
|TIMESTAMPMILLITZ|Date, long|
|DATEDAY|Date, long, int|
|FLOAT8|double|
|FLOAT4|float|
Expand Down

0 comments on commit 9ab42e8

Please sign in to comment.