From 5a16cdccf29bd66b51d4d00eff3303ab0eb764a8 Mon Sep 17 00:00:00 2001 From: Yingtao Liu Date: Mon, 12 Jun 2023 17:11:48 -0700 Subject: [PATCH] timestamp type initial draft --- .idea/codeStyles/Project.xml | 14 + .idea/codeStyles/codeStyleConfig.xml | 5 + drafts/types/Timestamp.md | 449 +++++++++++++++++++++++++++ 3 files changed, 468 insertions(+) create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 drafts/types/Timestamp.md diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..ba64087 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/drafts/types/Timestamp.md b/drafts/types/Timestamp.md new file mode 100644 index 0000000..76da258 --- /dev/null +++ b/drafts/types/Timestamp.md @@ -0,0 +1,449 @@ +# Timestamp Type in PartiQL + +## Background + +As of today, PartiQL’s timestamp type is based on `ion`. This document covers the syntax, semantics and example usages of generic `Timestamp` types supported in PartiQL. + +## Syntax + +### SQL standard + +SQL 92 Grammar: + +``` +-- TIMESTAMP TYPE + ::= [ ] + [ WITH TIME ZONE ] + ::=