Skip to content

Commit

Permalink
Merge branch 'master' into custom-bigquery-sink
Browse files Browse the repository at this point in the history
  • Loading branch information
peihe committed Apr 11, 2016
2 parents 24fc00e + 1cef642 commit a63b339
Show file tree
Hide file tree
Showing 865 changed files with 16,383 additions and 11,252 deletions.
13 changes: 7 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[BEAM-<Jira issue #>] Description of pull request

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

- [ ] Make sure tests pass via `mvn clean verify`. (Even better, enable
Travis-CI for on your fork and ensure the whole test matrix passes).
- [ ] Replace "<Jira issue #>" in the title with the actual Jira issue
- [ ] Make sure the PR title is formatted like:
`[BEAM-<Jira issue #>] Description of pull request`
- [ ] Make sure tests pass via `mvn clean verify`. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
- [ ] Replace "<Jira issue #>" in the title with the actual Jira issue
number, if there is one.
- [ ] If this contribution is large, please file an Apache
[Individual Contributor License Agreement](https://www.apache.org/licenses/icla.txt).


---
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# NOTE: if you modify this file, you probably need to modify the file set that
# is an input to 'maven-assembly-plugin' that generates source distribution.
# This is typically in files named 'src.xml' throughout this repository.

# Ignore files generated by the Maven build process.
target/

Expand All @@ -21,3 +25,7 @@ dependency-reduced-pom.xml
# Ignore files that end with '~', since they are most likely auto-save files
# produced by a text editor.
*~

# NOTE: if you modify this file, you probably need to modify the file set that
# is an input to 'maven-assembly-plugin' that generates source distribution.
# This is typically in files named 'src.xml' throughout this repository.
33 changes: 17 additions & 16 deletions contrib/hadoop/pom.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright (C) 2015 The Google Cloud Dataflow Hadoop Library Authors
~
~ Licensed 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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!--
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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Expand Down Expand Up @@ -63,7 +64,7 @@
</dependency>
</dependencies>
<configuration>
<configLocation>../../checkstyle.xml</configLocation>
<configLocation>../../sdks/java/checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failOnViolation>true</failOnViolation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
/*
* Copyright (C) 2015 The Google Cloud Dataflow Hadoop Library Authors
* 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
*
* Licensed 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
* 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.
* 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 com.google.cloud.dataflow.contrib.hadoop;

import com.google.cloud.dataflow.sdk.coders.Coder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
/*
* Copyright (C) 2015 The Google Cloud Dataflow Hadoop Library Authors
* 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
*
* Licensed 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
* 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.
* 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 com.google.cloud.dataflow.contrib.hadoop;

import com.google.cloud.dataflow.sdk.coders.Coder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
/*
* Copyright (C) 2015 The Google Cloud Dataflow Hadoop Library Authors
* 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
*
* Licensed 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
* 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.
* 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 com.google.cloud.dataflow.contrib.hadoop;

import static com.google.cloud.dataflow.sdk.testing.SourceTestUtils.readFromSource;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
/*
* Copyright (C) 2015 The Google Cloud Dataflow Hadoop Library Authors
* 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
*
* Licensed 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
* 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.
* 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 com.google.cloud.dataflow.contrib.hadoop;

import com.google.cloud.dataflow.sdk.testing.CoderProperties;
Expand Down
2 changes: 1 addition & 1 deletion contrib/join-library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<configuration>
<configLocation>../../checkstyle.xml</configLocation>
<configLocation>../../sdks/java/checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failOnViolation>true</failOnViolation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
/*
* Copyright (C) 2015 The Google Cloud Dataflow join-library Authors
* 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
*
* Licensed 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
* 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.
* 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 com.google.cloud.dataflow.contrib.joinlibrary;

import com.google.cloud.dataflow.sdk.coders.KvCoder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
/*
* Copyright (C) 2015 The Google Cloud Dataflow join-library Authors
* 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
*
* Licensed 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
* 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.
* 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 com.google.cloud.dataflow.contrib.joinlibrary;

import com.google.cloud.dataflow.sdk.Pipeline;
import com.google.cloud.dataflow.sdk.testing.DataflowAssert;
import com.google.cloud.dataflow.sdk.testing.PAssert;
import com.google.cloud.dataflow.sdk.testing.TestPipeline;
import com.google.cloud.dataflow.sdk.transforms.Create;
import com.google.cloud.dataflow.sdk.values.KV;
Expand Down Expand Up @@ -66,7 +67,7 @@ public void testJoinOneToOneMapping() {

expectedResult.add(KV.of("Key1", KV.of(5L, "foo")));
expectedResult.add(KV.of("Key2", KV.of(4L, "bar")));
DataflowAssert.that(output).containsInAnyOrder(expectedResult);
PAssert.that(output).containsInAnyOrder(expectedResult);

p.run();
}
Expand All @@ -87,7 +88,7 @@ public void testJoinOneToManyMapping() {

expectedResult.add(KV.of("Key2", KV.of(4L, "bar")));
expectedResult.add(KV.of("Key2", KV.of(4L, "gazonk")));
DataflowAssert.that(output).containsInAnyOrder(expectedResult);
PAssert.that(output).containsInAnyOrder(expectedResult);

p.run();
}
Expand All @@ -108,7 +109,7 @@ public void testJoinManyToOneMapping() {

expectedResult.add(KV.of("Key2", KV.of(4L, "bar")));
expectedResult.add(KV.of("Key2", KV.of(6L, "bar")));
DataflowAssert.that(output).containsInAnyOrder(expectedResult);
PAssert.that(output).containsInAnyOrder(expectedResult);

p.run();
}
Expand All @@ -126,7 +127,7 @@ public void testJoinNoneToNoneMapping() {
PCollection<KV<String, KV<Long, String>>> output = Join.innerJoin(
leftCollection, rightCollection);

DataflowAssert.that(output).containsInAnyOrder(expectedResult);
PAssert.that(output).containsInAnyOrder(expectedResult);
p.run();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
/*
* Copyright (C) 2015 The Google Cloud Dataflow join-library Authors
* 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
*
* Licensed 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
* 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.
* 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 com.google.cloud.dataflow.contrib.joinlibrary;

import com.google.cloud.dataflow.sdk.Pipeline;
import com.google.cloud.dataflow.sdk.testing.DataflowAssert;
import com.google.cloud.dataflow.sdk.testing.PAssert;
import com.google.cloud.dataflow.sdk.testing.TestPipeline;
import com.google.cloud.dataflow.sdk.transforms.Create;
import com.google.cloud.dataflow.sdk.values.KV;
Expand Down Expand Up @@ -67,7 +68,7 @@ public void testJoinOneToOneMapping() {

expectedResult.add(KV.of("Key1", KV.of(5L, "foo")));
expectedResult.add(KV.of("Key2", KV.of(4L, "bar")));
DataflowAssert.that(output).containsInAnyOrder(expectedResult);
PAssert.that(output).containsInAnyOrder(expectedResult);

p.run();
}
Expand All @@ -88,7 +89,7 @@ public void testJoinOneToManyMapping() {

expectedResult.add(KV.of("Key2", KV.of(4L, "bar")));
expectedResult.add(KV.of("Key2", KV.of(4L, "gazonk")));
DataflowAssert.that(output).containsInAnyOrder(expectedResult);
PAssert.that(output).containsInAnyOrder(expectedResult);

p.run();
}
Expand All @@ -109,7 +110,7 @@ public void testJoinManyToOneMapping() {

expectedResult.add(KV.of("Key2", KV.of(4L, "bar")));
expectedResult.add(KV.of("Key2", KV.of(6L, "bar")));
DataflowAssert.that(output).containsInAnyOrder(expectedResult);
PAssert.that(output).containsInAnyOrder(expectedResult);

p.run();
}
Expand All @@ -128,7 +129,7 @@ public void testJoinOneToNoneMapping() {
leftCollection, rightCollection, "");

expectedResult.add(KV.of("Key2", KV.of(4L, "")));
DataflowAssert.that(output).containsInAnyOrder(expectedResult);
PAssert.that(output).containsInAnyOrder(expectedResult);
p.run();
}

Expand Down
Loading

0 comments on commit a63b339

Please sign in to comment.