You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by el...@apache.org on 2016/04/18 17:27:35 UTC

calcite git commit: [CALCITE-1192] Clarify date/time serialization methods

Repository: calcite
Updated Branches:
  refs/heads/master e010b1b20 -> 6ddd78212


[CALCITE-1192] Clarify date/time serialization methods

Addendum: Make sure the json and protobuf docs are consistent
in their descriptions about how they are serialized as numbers.


Project: http://git-wip-us.apache.org/repos/asf/calcite/repo
Commit: http://git-wip-us.apache.org/repos/asf/calcite/commit/6ddd7821
Tree: http://git-wip-us.apache.org/repos/asf/calcite/tree/6ddd7821
Diff: http://git-wip-us.apache.org/repos/asf/calcite/diff/6ddd7821

Branch: refs/heads/master
Commit: 6ddd7821222f1a3e9480c205fdcfa8119b1277c3
Parents: e010b1b
Author: Josh Elser <el...@apache.org>
Authored: Mon Apr 18 11:26:18 2016 -0400
Committer: Josh Elser <el...@apache.org>
Committed: Mon Apr 18 11:26:18 2016 -0400

----------------------------------------------------------------------
 avatica/site/_docs/json_reference.md     | 8 ++++----
 avatica/site/_docs/protobuf_reference.md | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite/blob/6ddd7821/avatica/site/_docs/json_reference.md
----------------------------------------------------------------------
diff --git a/avatica/site/_docs/json_reference.md b/avatica/site/_docs/json_reference.md
index a512b84..6340c59 100644
--- a/avatica/site/_docs/json_reference.md
+++ b/avatica/site/_docs/json_reference.md
@@ -1177,10 +1177,10 @@ for more information on valid attributes in JSON.
 | DOUBLE | number ||
 | BIG_INTEGER | number | Implicitly handled by Jackson. |
 | BIG_DECIMAL | number | Implicitly handled by Jackson. |
-| JAVA_SQL_TIME | number | As an integer, millis since midnight. |
-| JAVA_SQL_DATE | number | As an integer, days since the epoch. |
-| JAVA_SQL_TIMESTAMP | number | As a long, millis since the epoch. |
-| JAVA_UTIL_DATE | number | As a long, millis since the epoch. |
+| JAVA_SQL_TIME | number | As an integer, milliseconds since midnight. |
+| JAVA_SQL_DATE | number | As an integer, the number of days since the epoch. |
+| JAVA_SQL_TIMESTAMP | number | As a long, milliseconds since the epoch. |
+| JAVA_UTIL_DATE | number | As a long, milliseconds since the epoch. |
 | BYTE_STRING | string | A Base64-encoded string. |
 | STRING | string | |
 | NUMBER | number | A general number, unknown what concrete type. |

http://git-wip-us.apache.org/repos/asf/calcite/blob/6ddd7821/avatica/site/_docs/protobuf_reference.md
----------------------------------------------------------------------
diff --git a/avatica/site/_docs/protobuf_reference.md b/avatica/site/_docs/protobuf_reference.md
index f1ac918..ef910f1 100644
--- a/avatica/site/_docs/protobuf_reference.md
+++ b/avatica/site/_docs/protobuf_reference.md
@@ -1251,10 +1251,10 @@ to the attributes in this message:
 | DOUBLE | `number_value` ||
 | BIG_INTEGER | `bytes_value` | The two's-complement representation of the BigInteger. See `BigInteger#toByteArray().` |
 | BIG_DECIMAL | `string_value` | A string-ified representation of the value. See `BigDecimal#toString()`. |
-| JAVA_SQL_TIME | `number_value` ||
-| JAVA_SQL_DATE | `number_value` ||
-| JAVA_SQL_TIMESTAMP | `number_value` ||
-| JAVA_UTIL_DATE | `number_value` ||
+| JAVA_SQL_TIME | `number_value` | As an integer, milliseconds since midnight. |
+| JAVA_SQL_DATE | `number_value` | As an integer, the number of days since the epoch. |
+| JAVA_SQL_TIMESTAMP | `number_value` | As a long, milliseconds since the epoch. |
+| JAVA_UTIL_DATE | `number_value` | As a long, milliseconds since the epoch. |
 | BYTE_STRING | `bytes_value` ||
 | STRING | `string_value` | This must be a UTF-8 string. |
 | NUMBER | `number_value` | A general number, unknown what concrete type. |