From b59a41f431583c859a2c4acd1a735eadf328dd76 Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Mon, 3 Apr 2023 15:23:02 +0300 Subject: [PATCH 1/2] Add Java 8 types --- docs/Gemfile.lock | 26 +++++++++++++------------- docs/sql-ref-datatypes.md | 8 ++++---- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 6654e6c47c615..5e37163d4c683 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -1,18 +1,18 @@ GEM remote: https://rubygems.org/ specs: - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) + addressable (2.8.2) + public_suffix (>= 2.0.2, < 6.0) colorator (1.1.0) - concurrent-ruby (1.1.9) - em-websocket (0.5.2) + concurrent-ruby (1.2.2) + em-websocket (0.5.3) eventmachine (>= 0.12.9) - http_parser.rb (~> 0.6.0) + http_parser.rb (~> 0) eventmachine (1.2.7) ffi (1.15.5) forwardable-extended (2.6.0) - http_parser.rb (0.6.0) - i18n (1.8.11) + http_parser.rb (0.8.0) + i18n (1.12.0) concurrent-ruby (~> 1.0) jekyll (4.2.1) addressable (~> 2.4) @@ -31,23 +31,23 @@ GEM terminal-table (~> 2.0) jekyll-redirect-from (0.16.0) jekyll (>= 3.3, < 5.0) - jekyll-sass-converter (2.1.0) + jekyll-sass-converter (2.2.0) sassc (> 2.0.1, < 3.0) jekyll-watch (2.2.1) listen (~> 3.0) - kramdown (2.3.1) + kramdown (2.4.0) rexml kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) - liquid (4.0.3) - listen (3.7.0) + liquid (4.0.4) + listen (3.8.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.4.0) pathutil (0.16.2) forwardable-extended (~> 2.6) - public_suffix (4.0.6) - rb-fsevent (0.11.0) + public_suffix (5.0.1) + rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) rexml (3.2.5) diff --git a/docs/sql-ref-datatypes.md b/docs/sql-ref-datatypes.md index 4997d1292d95c..25dc00f18a4e9 100644 --- a/docs/sql-ref-datatypes.md +++ b/docs/sql-ref-datatypes.md @@ -159,9 +159,9 @@ You can access them by doing |**StringType**|String|StringType| |**BinaryType**|Array[Byte]|BinaryType| |**BooleanType**|Boolean|BooleanType| -|**TimestampType**|java.sql.Timestamp|TimestampType| +|**TimestampType**|java.time.Instant or java.sql.Timestamp|TimestampType| |**TimestampNTZType**|java.time.LocalDateTime|TimestampNTZType| -|**DateType**|java.sql.Date|DateType| +|**DateType**|java.time.LocalDate or java.sql.Date|DateType| |**YearMonthIntervalType**|java.time.Period|YearMonthIntervalType| |**DayTimeIntervalType**|java.time.Duration|DayTimeIntervalType| |**ArrayType**|scala.collection.Seq|ArrayType(*elementType*, [*containsNull]*)
**Note:** The default value of *containsNull* is true.| @@ -190,9 +190,9 @@ please use factory methods provided in |**StringType**|String|DataTypes.StringType| |**BinaryType**|byte[]|DataTypes.BinaryType| |**BooleanType**|boolean or Boolean|DataTypes.BooleanType| -|**TimestampType**|java.sql.Timestamp|DataTypes.TimestampType| +|**TimestampType**|java.time.Instant or java.sql.Timestamp|DataTypes.TimestampType| |**TimestampNTZType**|java.time.LocalDateTime|DataTypes.TimestampNTZType| -|**DateType**|java.sql.Date|DataTypes.DateType| +|**DateType**|java.time.LocalDate or java.sql.Date|DataTypes.DateType| |**YearMonthIntervalType**|java.time.Period|DataTypes.YearMonthIntervalType| |**DayTimeIntervalType**|java.time.Duration|DataTypes.DayTimeIntervalType| |**ArrayType**|java.util.List|DataTypes.createArrayType(*elementType*)
**Note:** The value of *containsNull* will be true.
DataTypes.createArrayType(*elementType*, *containsNull*).| From b34ed306eb0a3cf1ea1aa998ff5d3b02148c7094 Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Mon, 3 Apr 2023 15:25:12 +0300 Subject: [PATCH 2/2] Revert Gemfile.lock --- docs/Gemfile.lock | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 5e37163d4c683..6654e6c47c615 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -1,18 +1,18 @@ GEM remote: https://rubygems.org/ specs: - addressable (2.8.2) - public_suffix (>= 2.0.2, < 6.0) + addressable (2.8.0) + public_suffix (>= 2.0.2, < 5.0) colorator (1.1.0) - concurrent-ruby (1.2.2) - em-websocket (0.5.3) + concurrent-ruby (1.1.9) + em-websocket (0.5.2) eventmachine (>= 0.12.9) - http_parser.rb (~> 0) + http_parser.rb (~> 0.6.0) eventmachine (1.2.7) ffi (1.15.5) forwardable-extended (2.6.0) - http_parser.rb (0.8.0) - i18n (1.12.0) + http_parser.rb (0.6.0) + i18n (1.8.11) concurrent-ruby (~> 1.0) jekyll (4.2.1) addressable (~> 2.4) @@ -31,23 +31,23 @@ GEM terminal-table (~> 2.0) jekyll-redirect-from (0.16.0) jekyll (>= 3.3, < 5.0) - jekyll-sass-converter (2.2.0) + jekyll-sass-converter (2.1.0) sassc (> 2.0.1, < 3.0) jekyll-watch (2.2.1) listen (~> 3.0) - kramdown (2.4.0) + kramdown (2.3.1) rexml kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) - liquid (4.0.4) - listen (3.8.0) + liquid (4.0.3) + listen (3.7.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.4.0) pathutil (0.16.2) forwardable-extended (~> 2.6) - public_suffix (5.0.1) - rb-fsevent (0.11.2) + public_suffix (4.0.6) + rb-fsevent (0.11.0) rb-inotify (0.10.1) ffi (~> 1.0) rexml (3.2.5)