[
https://issues.apache.org/jira/browse/BEAM-2990?focusedWorklogId=89482&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-89482
]
ASF GitHub Bot logged work on BEAM-2990:
----------------------------------------
Author: ASF GitHub Bot
Created on: 10/Apr/18 16:38
Start Date: 10/Apr/18 16:38
Worklog Time Spent: 10m
Work Description: akedin commented on a change in pull request #5079:
[BEAM-2990] support MAP in SQL schema
URL: https://github.com/apache/beam/pull/5079#discussion_r180487493
##########
File path: sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/Schema.java
##########
@@ -242,6 +247,10 @@ public FieldType type() {
public abstract TypeName getTypeName();
// For container types (e.g. ARRAY), returns the type of the contained
element.
@Nullable public abstract FieldType getComponentType();
+ // For MAP type, returns the type of the key element.
+ @Nullable public abstract FieldType getComponentKeyType();
+ // For MAP type, returns the type of the value element.
+ @Nullable public abstract FieldType getComponentValueType();
Review comment:
to me it looks like both `getComponentValueType()` and `getComponentType()`
mean the same thing, i.e. they both describe the type of the value in the
container. Keep just one of them?
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 89482)
Time Spent: 40m (was: 0.5h)
> 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: 40m
> 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
(v7.6.3#76005)