[beam] branch master updated: Skip PubSubBigQueryIT.test_file_loads on Dataflow

2019-08-26 Thread pabloem
This is an automated email from the ASF dual-hosted git repository.

pabloem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
 new f2e32af  Skip PubSubBigQueryIT.test_file_loads on Dataflow
 new 842942e  Merge pull request #9427 from ttanay/skip-test-file-loads
f2e32af is described below

commit f2e32afab3f7099ddbb7066249ed2025f0ff979f
Author: ttanay 
AuthorDate: Sun Aug 25 21:28:19 2019 +0530

Skip PubSubBigQueryIT.test_file_loads on Dataflow
---
 sdks/python/apache_beam/io/gcp/bigquery_test.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sdks/python/apache_beam/io/gcp/bigquery_test.py 
b/sdks/python/apache_beam/io/gcp/bigquery_test.py
index 1294d87..2c0ef81 100644
--- a/sdks/python/apache_beam/io/gcp/bigquery_test.py
+++ b/sdks/python/apache_beam/io/gcp/bigquery_test.py
@@ -761,6 +761,8 @@ class PubSubBigQueryIT(unittest.TestCase):
 
   @attr('IT')
   def test_file_loads(self):
+if isinstance(self.test_pipeline.runner, TestDataflowRunner):
+  self.skipTest('https://issuetracker.google.com/issues/118375066')
 self._run_pubsub_bq_pipeline(WriteToBigQuery.Method.FILE_LOADS,
  triggering_frequency=20)
 



[beam] branch master updated: [BEAM-7389] Update to use util.Regex transform

2019-08-26 Thread altay
This is an automated email from the ASF dual-hosted git repository.

altay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
 new 41dd4bf  [BEAM-7389] Update to use util.Regex transform
 new da6c1a8  Merge pull request #9435 from davidcavazos/regex-sample
41dd4bf is described below

commit 41dd4bf8b106dcbc48146e174ca468ff90d3cdfc
Author: David Cavazos 
AuthorDate: Mon Aug 26 16:38:42 2019 -0700

[BEAM-7389] Update to use util.Regex transform
---
 .../snippets/transforms/element_wise/regex.py  | 235 ++---
 .../snippets/transforms/element_wise/regex_test.py | 210 +++---
 2 files changed, 289 insertions(+), 156 deletions(-)

diff --git 
a/sdks/python/apache_beam/examples/snippets/transforms/element_wise/regex.py 
b/sdks/python/apache_beam/examples/snippets/transforms/element_wise/regex.py
index 44aa9629..975d5d3 100644
--- a/sdks/python/apache_beam/examples/snippets/transforms/element_wise/regex.py
+++ b/sdks/python/apache_beam/examples/snippets/transforms/element_wise/regex.py
@@ -20,142 +20,217 @@ from __future__ import absolute_import
 from __future__ import print_function
 
 
-def regex_match(test=None):
-  # [START regex_match]
+def regex_matches(test=None):
+  # [START regex_matches]
   import apache_beam as beam
-  import re
-
-  def parse_plant(text):
-m = re.match(r'^([^\s-]+)\s*-\s*(\w+)\s*-\s*(?P\w+)$', text)
-if m:
-  yield {
-  'match': m.group(0),  # contains the entire matched text
-  'icon': m.group(1),   # ([^\s-]+) - group
-  'name': m.group(2),   # (\w+) - group
-  'duration': m.group('duration'),  # (?P\w+) - named group
-  }
 
+  # Matches a named group 'icon', and then two comma-separated groups.
+  regex = r'(?P[^ ,]+), *(\w+), *(\w+)'
   with beam.Pipeline() as pipeline:
-plant_matches = (
+plants_matches = (
 pipeline
 | 'Garden plants' >> beam.Create([
-'   -   Strawberry   -   perennial',
-'凌 - Carrot - biennial',
-'#  - invalid - format',
-'\t-\tEggplant\t-\tperennial',
-' - Tomato - annual',
-' - invalid - format with trailing words',
-'凜-Potato-perennial',
+',   Strawberry,   perennial',
+'凌, Carrot, biennial ignoring trailing words',
+', Eggplant, perennial',
+', Tomato, annual',
+'凜,Potato,perennial',
+'# , invalid, format',
+'invalid, , format',
 ])
-| 'Parse plants' >> beam.FlatMap(parse_plant)
+| 'Parse plants' >> beam.Regex.matches(regex)
 | beam.Map(print)
 )
-# [END regex_match]
+# [END regex_matches]
 if test:
-  test(plant_matches)
+  test(plants_matches)
 
 
-def regex_search(test=None):
-  # [START regex_search]
+def regex_all_matches(test=None):
+  # [START regex_all_matches]
   import apache_beam as beam
-  import re
-
-  def parse_plant_duration(text):
-m = re.search(r'([^\s-]+)\s*-\s*(\w*)\s*-\s*(?P\w+)', text)
-if m:
-  yield {
-  'match': m.group(0),  # contains the entire matched text
-  'icon': m.group(1),   # ([^\s-]+) - group
-  'name': m.group(2),   # (\w+) - group
-  'duration': m.group('duration'),  # (?P\w+) - named group
-  }
 
+  # Matches a named group 'icon', and then two comma-separated groups.
+  regex = r'(?P[^ ,]+), *(\w+), *(\w+)'
   with beam.Pipeline() as pipeline:
-plant_matches = (
+plants_all_matches = (
 pipeline
 | 'Garden plants' >> beam.Create([
-'#    -   Strawberry   -   perennial',
-'# 凌 - Carrot - biennial',
-'# \t-\tEggplant\t-\tperennial',
-'#  - Tomato - annual',
-'# 凜-Potato-perennial',
+',   Strawberry,   perennial',
+'凌, Carrot, biennial ignoring trailing words',
+', Eggplant, perennial',
+', Tomato, annual',
+'凜,Potato,perennial',
+'# , invalid, format',
+'invalid, , format',
 ])
-| 'Parse plants' >> beam.FlatMap(parse_plant_duration)
+| 'Parse plants' >> beam.Regex.all_matches(regex)
 | beam.Map(print)
 )
-# [END regex_search]
+# [END regex_all_matches]
 if test:
-  test(plant_matches)
+  test(plants_all_matches)
+
+
+def regex_matches_kv(test=None):
+  # [START regex_matches_kv]
+  import apache_beam as beam
+
+  # Matches a named group 'icon', and then two comma-separated groups.
+  regex = r'(?P[^ ,]+), *(\w+), *(\w+)'
+  with beam.Pipeline() as pipeline:
+plants_matches_kv = (
+pipeline
+| 'Garden plants' >> beam.Create([
+',   Strawberry,   perennial',
+'凌, Carrot, biennial 

[beam] branch master updated (842942e -> 823de61)

2019-08-26 Thread markliu
This is an automated email from the ASF dual-hosted git repository.

markliu pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git.


from 842942e  Merge pull request #9427 from ttanay/skip-test-file-loads
 add 692de7c  [BEAM-8079] Move release build verification to Jenkins
 add 823de61  Merge pull request #9411: [BEAM-8079] Move release Gradle 
build to a Jenkins job (Part - 1)

No new revisions were added by this update.

Summary of changes:
 ...hon2.groovy => job_Release_Gradle_Build.groovy} | 25 +++
 release/src/main/scripts/verify_release_build.sh   | 80 --
 2 files changed, 13 insertions(+), 92 deletions(-)
 copy .test-infra/jenkins/{job_PostCommit_Python2.groovy => 
job_Release_Gradle_Build.groovy} (65%)



[beam] branch master updated (e14f8dc -> 664e250)

2019-08-26 Thread amaliujia
This is an automated email from the ASF dual-hosted git repository.

amaliujia pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git.


from e14f8dc  Merge pull request #9423: [SQL][ZetaSQL] remove @Ignore from 
fixed tests.
 new 91c129d  [BEAM-8080] [SQL] Fix relocation of com.google.types
 new 47c51ad  [BEAM-8080] [SQL] Do not relocate com.google.type.*
 new 664e250  Merge pull request #9414 from kanterov/beam-8080

The 22860 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 sdks/java/extensions/sql/build.gradle | 1 -
 1 file changed, 1 deletion(-)



[beam] branch master updated (64262a6 -> e14f8dc)

2019-08-26 Thread gleb
This is an automated email from the ASF dual-hosted git repository.

gleb pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git.


from 64262a6  Merge pull request #9275: [BEAM-6858] Support side inputs 
injected into a DoFn
 add fe07ce9  [Beam ZetaSQL] remove @Ignore from fixed tests.
 add e14f8dc  Merge pull request #9423: [SQL][ZetaSQL] remove @Ignore from 
fixed tests.

No new revisions were added by this update.

Summary of changes:
 .../sdk/extensions/sql/zetasql/ZetaSQLDialectSpecTestZetaSQL.java | 4 
 1 file changed, 4 deletions(-)