ASF GitHub Bot logged work on BEAM-2990:

                Author: ASF GitHub Bot
            Created on: 13/Apr/18 09:45
            Start Date: 13/Apr/18 09:45
    Worklog Time Spent: 10m 
      Work Description: reuvenlax commented on a change in pull request #5079: 
[BEAM-2990] support MAP in SQL schema
URL: https://github.com/apache/beam/pull/5079#discussion_r181337447

 File path: sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/Schema.java
 @@ -208,8 +209,12 @@ public int hashCode() {
     public static final Set<TypeName> STRING_TYPES = ImmutableSet.of(STRING);
     public static final Set<TypeName> DATE_TYPES = ImmutableSet.of(DATETIME);
     public static final Set<TypeName> CONTAINER_TYPES = ImmutableSet.of(ARRAY);
+    public static final Set<TypeName> MAP_TYPES = ImmutableSet.of(MAP);
     public static final Set<TypeName> COMPOSITE_TYPES = ImmutableSet.of(ROW);
+    public boolean isPrimitiveType() {
+      return isNumericType() || isStringType() || isDateType();
 Review comment:
   <!--new_thread; commit:78f845e1215b15d3246bedd7985d4c2b737650b1; 
   this is not correct (e.g. it excludes boolean). better off making this 
exclusive (return !isContainterType() && !isCompositeType()).

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 90754)
    Time Spent: 4h  (was: 3h 50m)

> support data type MAP
> ---------------------
>                 Key: BEAM-2990
>                 URL: https://issues.apache.org/jira/browse/BEAM-2990
>             Project: Beam
>          Issue Type: New Feature
>          Components: dsl-sql
>            Reporter: Xu Mingmin
>            Assignee: Xu Mingmin
>            Priority: Major
>          Time Spent: 4h
>  Remaining Estimate: 0h
> support Non-scalar types:
> MAP   Collection of keys mapped to values
> ARRAY         Ordered, contiguous collection that may contain duplicates

This message was sent by Atlassian JIRA

Reply via email to