This is an automated email from the ASF dual-hosted git repository.

maxgekk pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.4 by this push:
     new 47b29128e36 [MINOR][DOCS] Add Java 8 types to value types of 
Scala/Java APIs
47b29128e36 is described below

commit 47b29128e3694203844b98b8f4d23201b0a1cdfb
Author: Max Gekk <max.g...@gmail.com>
AuthorDate: Mon Apr 3 17:09:37 2023 +0300

    [MINOR][DOCS] Add Java 8 types to value types of Scala/Java APIs
    
    ### What changes were proposed in this pull request?
    In the PR, I propose to update the doc page 
https://spark.apache.org/docs/latest/sql-ref-datatypes.html about value types 
in Scala and Java APIs.
    
    <img width="1190" alt="Screenshot 2023-04-03 at 15 22 24" 
src="https://user-images.githubusercontent.com/1580697/229509678-7f860c2b-050e-4e40-b83d-821e70d1e194.png";>
    
    ### Why are the changes needed?
    To provide full info about supported "external" value types in Scala/Java 
APIs.
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    By building docs and checking them by eyes.
    
    Closes #40644 from MaxGekk/datatypes-java8-docs.
    
    Authored-by: Max Gekk <max.g...@gmail.com>
    Signed-off-by: Max Gekk <max.g...@gmail.com>
    (cherry picked from commit d3338c6879fd3e0b986654889f2e1e6407988dcc)
    Signed-off-by: Max Gekk <max.g...@gmail.com>
---
 docs/sql-ref-datatypes.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/sql-ref-datatypes.md b/docs/sql-ref-datatypes.md
index 64c6d335429..d2a8ad61bf5 100644
--- a/docs/sql-ref-datatypes.md
+++ b/docs/sql-ref-datatypes.md
@@ -127,9 +127,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]*)<br/>**Note:** The default value of *containsNull* is true.|
@@ -158,9 +158,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*)<br/>**Note:**
 The value of *containsNull* will be 
true.<br/>DataTypes.createArrayType(*elementType*, *containsNull*).|


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to