[jira] [Work logged] (BEAM-7068) Improve error messages when binding functions

2019-04-16 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7068?focusedWorklogId=228755&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-228755
 ]

ASF GitHub Bot logged work on BEAM-7068:


Author: ASF GitHub Bot
Created on: 17/Apr/19 00:02
Start Date: 17/Apr/19 00:02
Worklog Time Spent: 10m 
  Work Description: aaltay commented on pull request #8298: [BEAM-7068] 
Improving error messages when binding functions in Go SDK
URL: https://github.com/apache/beam/pull/8298#discussion_r276036580
 
 

 ##
 File path: sdks/go/pkg/beam/core/graph/edge.go
 ##
 @@ -235,7 +236,7 @@ func NewCoGBK(g *Graph, s *Scope, ns []*Node) (*MultiEdge, 
error) {
 // the shared input type.
 func NewFlatten(g *Graph, s *Scope, in []*Node) (*MultiEdge, error) {
if len(in) < 2 {
-   return nil, fmt.Errorf("flatten needs at least 2 input, got 
%v", len(in))
+   return nil, fmt.Errorf("creating new Flatten in scope %v: 
Flatten needs at least 2 input, got %v", s, len(in))
 
 Review comment:
   I found this informative answer on differences 
(https://stackoverflow.com/questions/41159169/why-not-use-v-to-print-int-and-string).
 I guess it does no make much of a difference in this case because the builtin 
len will always return an int.
 

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:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 228755)
Time Spent: 1h 40m  (was: 1.5h)

> Improve error messages when binding functions
> -
>
> Key: BEAM-7068
> URL: https://issues.apache.org/jira/browse/BEAM-7068
> Project: Beam
>  Issue Type: Sub-task
>  Components: sdk-go
>Reporter: Daniel Oliveira
>Assignee: Daniel Oliveira
>Priority: Minor
>  Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> This bug covers error messages around the file core/graph/bind.go which binds 
> the inputs and outputs of functions to make sure all the types match up 
> properly. When DoFns are created with the wrong number of inputs/outputs or 
> wrong input/output types, this is where errors will usually originate from.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-7068) Improve error messages when binding functions

2019-04-16 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7068?focusedWorklogId=228756&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-228756
 ]

ASF GitHub Bot logged work on BEAM-7068:


Author: ASF GitHub Bot
Created on: 17/Apr/19 00:02
Start Date: 17/Apr/19 00:02
Worklog Time Spent: 10m 
  Work Description: aaltay commented on pull request #8298: [BEAM-7068] 
Improving error messages when binding functions in Go SDK
URL: https://github.com/apache/beam/pull/8298
 
 
   
 

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:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 228756)
Time Spent: 1h 50m  (was: 1h 40m)

> Improve error messages when binding functions
> -
>
> Key: BEAM-7068
> URL: https://issues.apache.org/jira/browse/BEAM-7068
> Project: Beam
>  Issue Type: Sub-task
>  Components: sdk-go
>Reporter: Daniel Oliveira
>Assignee: Daniel Oliveira
>Priority: Minor
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> This bug covers error messages around the file core/graph/bind.go which binds 
> the inputs and outputs of functions to make sure all the types match up 
> properly. When DoFns are created with the wrong number of inputs/outputs or 
> wrong input/output types, this is where errors will usually originate from.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-7068) Improve error messages when binding functions

2019-04-16 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7068?focusedWorklogId=228740&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-228740
 ]

ASF GitHub Bot logged work on BEAM-7068:


Author: ASF GitHub Bot
Created on: 16/Apr/19 23:05
Start Date: 16/Apr/19 23:05
Worklog Time Spent: 10m 
  Work Description: youngoli commented on pull request #8298: [BEAM-7068] 
Improving error messages when binding functions in Go SDK
URL: https://github.com/apache/beam/pull/8298#discussion_r276025817
 
 

 ##
 File path: sdks/go/pkg/beam/core/graph/edge.go
 ##
 @@ -235,7 +236,7 @@ func NewCoGBK(g *Graph, s *Scope, ns []*Node) (*MultiEdge, 
error) {
 // the shared input type.
 func NewFlatten(g *Graph, s *Scope, in []*Node) (*MultiEdge, error) {
if len(in) < 2 {
-   return nil, fmt.Errorf("flatten needs at least 2 input, got 
%v", len(in))
+   return nil, fmt.Errorf("creating new Flatten in scope %v: 
Flatten needs at least 2 input, got %v", s, len(in))
 
 Review comment:
   From what I've seen %v is just generally used unless there's a reason not 
to, like applying additional formatting.
 

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:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 228740)
Time Spent: 1.5h  (was: 1h 20m)

> Improve error messages when binding functions
> -
>
> Key: BEAM-7068
> URL: https://issues.apache.org/jira/browse/BEAM-7068
> Project: Beam
>  Issue Type: Sub-task
>  Components: sdk-go
>Reporter: Daniel Oliveira
>Assignee: Daniel Oliveira
>Priority: Minor
>  Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> This bug covers error messages around the file core/graph/bind.go which binds 
> the inputs and outputs of functions to make sure all the types match up 
> properly. When DoFns are created with the wrong number of inputs/outputs or 
> wrong input/output types, this is where errors will usually originate from.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-7068) Improve error messages when binding functions

2019-04-16 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7068?focusedWorklogId=228737&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-228737
 ]

ASF GitHub Bot logged work on BEAM-7068:


Author: ASF GitHub Bot
Created on: 16/Apr/19 22:58
Start Date: 16/Apr/19 22:58
Worklog Time Spent: 10m 
  Work Description: aaltay commented on pull request #8298: [BEAM-7068] 
Improving error messages when binding functions in Go SDK
URL: https://github.com/apache/beam/pull/8298#discussion_r276024213
 
 

 ##
 File path: sdks/go/pkg/beam/core/graph/edge.go
 ##
 @@ -235,7 +236,7 @@ func NewCoGBK(g *Graph, s *Scope, ns []*Node) (*MultiEdge, 
error) {
 // the shared input type.
 func NewFlatten(g *Graph, s *Scope, in []*Node) (*MultiEdge, error) {
if len(in) < 2 {
-   return nil, fmt.Errorf("flatten needs at least 2 input, got 
%v", len(in))
+   return nil, fmt.Errorf("creating new Flatten in scope %v: 
Flatten needs at least 2 input, got %v", s, len(in))
 
 Review comment:
   Curiosity question,
   
   Why do we use %v as the format string for len(in). Would not %d be more 
appropriate?
 

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:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 228737)
Time Spent: 1h 20m  (was: 1h 10m)

> Improve error messages when binding functions
> -
>
> Key: BEAM-7068
> URL: https://issues.apache.org/jira/browse/BEAM-7068
> Project: Beam
>  Issue Type: Sub-task
>  Components: sdk-go
>Reporter: Daniel Oliveira
>Assignee: Daniel Oliveira
>Priority: Minor
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> This bug covers error messages around the file core/graph/bind.go which binds 
> the inputs and outputs of functions to make sure all the types match up 
> properly. When DoFns are created with the wrong number of inputs/outputs or 
> wrong input/output types, this is where errors will usually originate from.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-7068) Improve error messages when binding functions

2019-04-16 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7068?focusedWorklogId=228732&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-228732
 ]

ASF GitHub Bot logged work on BEAM-7068:


Author: ASF GitHub Bot
Created on: 16/Apr/19 22:41
Start Date: 16/Apr/19 22:41
Worklog Time Spent: 10m 
  Work Description: youngoli commented on issue #8298: [BEAM-7068] 
Improving error messages when binding functions in Go SDK
URL: https://github.com/apache/beam/pull/8298#issuecomment-483870429
 
 
   @aaltay for merge
 

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:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 228732)
Time Spent: 1h  (was: 50m)

> Improve error messages when binding functions
> -
>
> Key: BEAM-7068
> URL: https://issues.apache.org/jira/browse/BEAM-7068
> Project: Beam
>  Issue Type: Sub-task
>  Components: sdk-go
>Reporter: Daniel Oliveira
>Assignee: Daniel Oliveira
>Priority: Minor
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> This bug covers error messages around the file core/graph/bind.go which binds 
> the inputs and outputs of functions to make sure all the types match up 
> properly. When DoFns are created with the wrong number of inputs/outputs or 
> wrong input/output types, this is where errors will usually originate from.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-7068) Improve error messages when binding functions

2019-04-16 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7068?focusedWorklogId=228733&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-228733
 ]

ASF GitHub Bot logged work on BEAM-7068:


Author: ASF GitHub Bot
Created on: 16/Apr/19 22:41
Start Date: 16/Apr/19 22:41
Worklog Time Spent: 10m 
  Work Description: youngoli commented on pull request #8298: [BEAM-7068] 
Improving error messages when binding functions in Go SDK
URL: https://github.com/apache/beam/pull/8298#discussion_r276020537
 
 

 ##
 File path: sdks/go/pkg/beam/core/graph/bind.go
 ##
 @@ -290,22 +292,22 @@ func tryBindInbound(t typex.FullType, args 
[]funcx.FnParam, isMain bool) (typex.
return other, kind, nil
 }
 
-func inboundArity(t typex.FullType, isMain bool) int {
+func inboundArity(t typex.FullType, isMain bool) (int, error) {
if t.Class() == typex.Composite {
switch t.Type() {
case typex.KVType:
if isMain {
-   return 2
+   return 2, nil
}
// A KV side input must be a single iterator/map.
-   return 1
+   return 1, nil
case typex.CoGBKType:
-   return len(t.Components())
+   return len(t.Components()), nil
default:
-   panic("Unexpected inbound type")
+   return 0, fmt.Errorf("unexpected inbound type: %v", 
t.Type())
 
 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:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 228733)
Time Spent: 1h 10m  (was: 1h)

> Improve error messages when binding functions
> -
>
> Key: BEAM-7068
> URL: https://issues.apache.org/jira/browse/BEAM-7068
> Project: Beam
>  Issue Type: Sub-task
>  Components: sdk-go
>Reporter: Daniel Oliveira
>Assignee: Daniel Oliveira
>Priority: Minor
>  Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> This bug covers error messages around the file core/graph/bind.go which binds 
> the inputs and outputs of functions to make sure all the types match up 
> properly. When DoFns are created with the wrong number of inputs/outputs or 
> wrong input/output types, this is where errors will usually originate from.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-7068) Improve error messages when binding functions

2019-04-16 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7068?focusedWorklogId=228720&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-228720
 ]

ASF GitHub Bot logged work on BEAM-7068:


Author: ASF GitHub Bot
Created on: 16/Apr/19 22:18
Start Date: 16/Apr/19 22:18
Worklog Time Spent: 10m 
  Work Description: youngoli commented on pull request #8298: [BEAM-7068] 
Improving error messages when binding functions in Go SDK
URL: https://github.com/apache/beam/pull/8298#discussion_r276015169
 
 

 ##
 File path: sdks/go/pkg/beam/core/graph/edge.go
 ##
 @@ -202,16 +202,16 @@ func NewCoGBK(g *Graph, s *Scope, ns []*Node) 
(*MultiEdge, error) {
for i := 1; i < len(ns); i++ {
n := ns[i]
if !typex.IsKV(n.Type()) {
-   return nil, fmt.Errorf("input type must be KV: %v", n)
+   return nil, fmt.Errorf("creating new CoGBK in scope %v: 
input type must be KV: %v", s, n)
 
 Review comment:
   Ack. Yeah, I considered reducing the repetition by creating an error type, 
but I was already thinking about creating an error package for Beam and didn't 
really wanna do anything too complex in case it wouldn't work with the new 
errors. I'll add a TODO with a bug though so I don't forget to improve this 
later.
 

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:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 228720)
Time Spent: 50m  (was: 40m)

> Improve error messages when binding functions
> -
>
> Key: BEAM-7068
> URL: https://issues.apache.org/jira/browse/BEAM-7068
> Project: Beam
>  Issue Type: Sub-task
>  Components: sdk-go
>Reporter: Daniel Oliveira
>Assignee: Daniel Oliveira
>Priority: Minor
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> This bug covers error messages around the file core/graph/bind.go which binds 
> the inputs and outputs of functions to make sure all the types match up 
> properly. When DoFns are created with the wrong number of inputs/outputs or 
> wrong input/output types, this is where errors will usually originate from.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-7068) Improve error messages when binding functions

2019-04-16 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7068?focusedWorklogId=228712&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-228712
 ]

ASF GitHub Bot logged work on BEAM-7068:


Author: ASF GitHub Bot
Created on: 16/Apr/19 22:04
Start Date: 16/Apr/19 22:04
Worklog Time Spent: 10m 
  Work Description: lostluck commented on pull request #8298: [BEAM-7068] 
Improving error messages when binding functions in Go SDK
URL: https://github.com/apache/beam/pull/8298#discussion_r276010757
 
 

 ##
 File path: sdks/go/pkg/beam/core/graph/edge.go
 ##
 @@ -202,16 +202,16 @@ func NewCoGBK(g *Graph, s *Scope, ns []*Node) 
(*MultiEdge, error) {
for i := 1; i < len(ns); i++ {
n := ns[i]
if !typex.IsKV(n.Type()) {
-   return nil, fmt.Errorf("input type must be KV: %v", n)
+   return nil, fmt.Errorf("creating new CoGBK in scope %v: 
input type must be KV: %v", s, n)
 
 Review comment:
   Mostly just a thought, No Action Required.
   
   Given an offline discussion, you've probably thought about this, but note 
how the context is identical for each of these errors. Having a dedicated error 
type could reduce the repetition of the context. The trick is embedding and 
ensuring there's data for the subsequent errors (eg with a more general 
approach with format strings and []interface{} args.)
 

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:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 228712)
Time Spent: 40m  (was: 0.5h)

> Improve error messages when binding functions
> -
>
> Key: BEAM-7068
> URL: https://issues.apache.org/jira/browse/BEAM-7068
> Project: Beam
>  Issue Type: Sub-task
>  Components: sdk-go
>Reporter: Daniel Oliveira
>Assignee: Daniel Oliveira
>Priority: Minor
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> This bug covers error messages around the file core/graph/bind.go which binds 
> the inputs and outputs of functions to make sure all the types match up 
> properly. When DoFns are created with the wrong number of inputs/outputs or 
> wrong input/output types, this is where errors will usually originate from.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-7068) Improve error messages when binding functions

2019-04-16 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7068?focusedWorklogId=228711&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-228711
 ]

ASF GitHub Bot logged work on BEAM-7068:


Author: ASF GitHub Bot
Created on: 16/Apr/19 22:04
Start Date: 16/Apr/19 22:04
Worklog Time Spent: 10m 
  Work Description: lostluck commented on pull request #8298: [BEAM-7068] 
Improving error messages when binding functions in Go SDK
URL: https://github.com/apache/beam/pull/8298#discussion_r276009369
 
 

 ##
 File path: sdks/go/pkg/beam/core/graph/bind.go
 ##
 @@ -290,22 +292,22 @@ func tryBindInbound(t typex.FullType, args 
[]funcx.FnParam, isMain bool) (typex.
return other, kind, nil
 }
 
-func inboundArity(t typex.FullType, isMain bool) int {
+func inboundArity(t typex.FullType, isMain bool) (int, error) {
if t.Class() == typex.Composite {
switch t.Type() {
case typex.KVType:
if isMain {
-   return 2
+   return 2, nil
}
// A KV side input must be a single iterator/map.
-   return 1
+   return 1, nil
case typex.CoGBKType:
-   return len(t.Components())
+   return len(t.Components()), nil
default:
-   panic("Unexpected inbound type")
+   return 0, fmt.Errorf("unexpected inbound type: %v", 
t.Type())
 
 Review comment:
   Consider:
   unexpected composite inbound type
 

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:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 228711)
Time Spent: 0.5h  (was: 20m)

> Improve error messages when binding functions
> -
>
> Key: BEAM-7068
> URL: https://issues.apache.org/jira/browse/BEAM-7068
> Project: Beam
>  Issue Type: Sub-task
>  Components: sdk-go
>Reporter: Daniel Oliveira
>Assignee: Daniel Oliveira
>Priority: Minor
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> This bug covers error messages around the file core/graph/bind.go which binds 
> the inputs and outputs of functions to make sure all the types match up 
> properly. When DoFns are created with the wrong number of inputs/outputs or 
> wrong input/output types, this is where errors will usually originate from.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-7068) Improve error messages when binding functions

2019-04-12 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7068?focusedWorklogId=227032&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-227032
 ]

ASF GitHub Bot logged work on BEAM-7068:


Author: ASF GitHub Bot
Created on: 13/Apr/19 00:15
Start Date: 13/Apr/19 00:15
Worklog Time Spent: 10m 
  Work Description: youngoli commented on issue #8298: [BEAM-7068] 
Improving error messages when binding functions in Go SDK
URL: https://github.com/apache/beam/pull/8298#issuecomment-482758365
 
 
   R: @lostluck @ibzib 
 

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:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 227032)
Time Spent: 20m  (was: 10m)

> Improve error messages when binding functions
> -
>
> Key: BEAM-7068
> URL: https://issues.apache.org/jira/browse/BEAM-7068
> Project: Beam
>  Issue Type: Sub-task
>  Components: sdk-go
>Reporter: Daniel Oliveira
>Assignee: Daniel Oliveira
>Priority: Minor
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> This bug covers error messages around the file core/graph/bind.go which binds 
> the inputs and outputs of functions to make sure all the types match up 
> properly. When DoFns are created with the wrong number of inputs/outputs or 
> wrong input/output types, this is where errors will usually originate from.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work logged] (BEAM-7068) Improve error messages when binding functions

2019-04-12 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/BEAM-7068?focusedWorklogId=227031&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-227031
 ]

ASF GitHub Bot logged work on BEAM-7068:


Author: ASF GitHub Bot
Created on: 13/Apr/19 00:13
Start Date: 13/Apr/19 00:13
Worklog Time Spent: 10m 
  Work Description: youngoli commented on pull request #8298: [BEAM-7068] 
Improving error messages when binding functions in Go SDK
URL: https://github.com/apache/beam/pull/8298
 
 
   I improve the error messages by adding useful context wherever it comes
   in handy, plus making the error messages more human-readable, for
   example by printing out a function name instead of address.
   
   To show an example, this is the current error message when a DoFn has the 
wrong type as input:
   
   `failed to bind {Fn:0xc000aa4aa0 Param:[{Kind:Value T:int} {Kind:Emit 
T:func(string)}] Ret:[]} to input [string]: string is not assignable to int`
   
   New error message:
   
   `creating new DoFn in scope root/CountWords: binding fn main.extractWordsFn: 
binding params [{Value int}] to input string: string is not assignable to int`
   
   
   
   Thank you for your contribution! Follow this checklist to help us 
incorporate your contribution quickly and easily:
   
- [ ] [**Choose 
reviewer(s)**](https://beam.apache.org/contribute/#make-your-change) and 
mention them in a comment (`R: @username`).
- [ ] Format the pull request title like `[BEAM-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `BEAM-XXX` with the appropriate JIRA 
issue, if applicable. This will automatically link the pull request to the 
issue.
- [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   Post-Commit Tests Status (on master branch)
   

   
   Lang | SDK | Apex | Dataflow | Flink | Gearpump | Samza | Spark
   --- | --- | --- | --- | --- | --- | --- | ---
   Go | [![Build 
Status](https://builds.apache.org/job/beam_PostCommit_Go/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Go/lastCompletedBuild/)
 | --- | --- | --- | --- | --- | ---
   Java | [![Build 
Status](https://builds.apache.org/job/beam_PostCommit_Java/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java/lastCompletedBuild/)
 | [![Build 
Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Apex/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Apex/lastCompletedBuild/)
 | [![Build 
Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow/lastCompletedBuild/)
 | [![Build 
Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink/lastCompletedBuild/)[![Build
 
Status](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink_Batch/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink_Batch/lastCompletedBuild/)[![Build
 
Status](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink_Streaming/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink_Streaming/lastCompletedBuild/)
 | [![Build 
Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Gearpump/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Gearpump/lastCompletedBuild/)
 | [![Build 
Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza/lastCompletedBuild/)
 | [![Build 
Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark/lastCompletedBuild/)
   Python | [![Build 
Status](https://builds.apache.org/job/beam_PostCommit_Python_Verify/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Python_Verify/lastCompletedBuild/)[![Build
 
Status](https://builds.apache.org/job/beam_PostCommit_Python3_Verify/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Python3_Verify/lastCompletedBuild/)
 | --- | [![Build 
Status](https://builds.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/)
  [![Build 
Status](https://builds.apache.org/job/beam_Pos