[
https://issues.apache.org/jira/browse/BEAM-10027?focusedWorklogId=438268&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-438268
]
ASF GitHub Bot logged work on BEAM-10027:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 28/May/20 14:12
Start Date: 28/May/20 14:12
Worklog Time Spent: 10m
Work Description: rionmonster commented on a change in pull request
#11761:
URL: https://github.com/apache/beam/pull/11761#discussion_r431865646
##########
File path: learning/katas/kotlin/Windowing/Adding Timestamp/ParDo/task.md
##########
@@ -0,0 +1,46 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+
+Adding Timestamp - ParDo
+------------------------
+
+Bounded sources (such as a file from TextIO) do not provide timestamps for
elements. If you need
+timestamps, you must add them to your PCollection’s elements.
+
+You can assign new timestamps to the elements of a PCollection by applying a
ParDo transform that
+outputs new elements with timestamps that you set.
+
+**Kata:** Please assign each element a timestamp based on the the
`Event.getDate()`.
Review comment:
Done!
##########
File path: learning/katas/kotlin/Core
Transforms/Partition/Partition/src/org/apache/beam/learning/katas/coretransforms/partition/Task.kt
##########
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beam.learning.katas.coretransforms.partition
+
+import org.apache.beam.learning.katas.util.Log
+import org.apache.beam.sdk.Pipeline
+import org.apache.beam.sdk.options.PipelineOptionsFactory
+import org.apache.beam.sdk.transforms.Create
+import org.apache.beam.sdk.transforms.Partition
+import org.apache.beam.sdk.transforms.Partition.PartitionFn
Review comment:
Done!
##########
File path: learning/katas/kotlin/Common
Transforms/Filter/ParDo/test/org/apache/beam/learning/katas/commontransforms/filter/pardo/TaskTest.kt
##########
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beam.learning.katas.commontransforms.filter.pardo
+
+import
org.apache.beam.learning.katas.commontransforms.filter.pardo.Task.applyTransform
+import org.apache.beam.sdk.testing.PAssert
+import org.apache.beam.sdk.testing.TestPipeline
+import org.apache.beam.sdk.transforms.Create
+import org.apache.beam.sdk.values.PCollection
Review comment:
Done!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: 438268)
Time Spent: 10h 10m (was: 10h)
> Support for Kotlin-based Beam Katas
> -----------------------------------
>
> Key: BEAM-10027
> URL: https://issues.apache.org/jira/browse/BEAM-10027
> Project: Beam
> Issue Type: Improvement
> Components: katas
> Reporter: Rion Williams
> Assignee: Rion Williams
> Priority: P2
> Original Estimate: 8h
> Time Spent: 10h 10m
> Remaining Estimate: 0h
>
> Currently, there are a series of examples available demonstrating the use of
> Apache Beam with Kotlin. It would be nice to have support for the same Beam
> Katas that exist for Python, Go, and Java to also support Kotlin.
> The port itself shouldn't be that involved since it can still target the JVM,
> so it would likely just require the inclusion for Kotlin dependencies and a
> conversion for all of the existing Java examples.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)