Skip to content

Commit 69cb724

Browse files
committed
Fixed license header and added manual unit test documentation
1 parent bbf26cc commit 69cb724

File tree

3 files changed

+37
-30
lines changed

3 files changed

+37
-30
lines changed

bigquery/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ BigQuery interpreter for Apache Zeppelin
55
You can follow the instructions at [Apache Zeppelin on Dataproc](https://github.com/GoogleCloudPlatform/dataproc-initialization-actions/blob/master/apache-zeppelin/README.MD) to bring up Zeppelin on Google dataproc.
66
You could also install and bring up Zeppelin on Google compute Engine.
77

8+
# Unit Tests
9+
BigQuery Unit tests are excluded as these tests depend on the BigQuery external service. This is because BigQuery does not have a local mock at this point.
10+
If you like to run these tests manually, please follow the following steps:
11+
1. [Create a new project](https://support.google.com/cloud/answer/6251787?hl=en)
12+
2. [Create a Google Compute Engine instance](https://cloud.google.com/compute/docs/instances/create-start-instance)
13+
3. Copy the project ID that you created and add it to the property "projectId" in `resources/constants.json`
14+
4. Run the command mvn <options> -Dbigquery.text.exclude='' test -pl bigquery -am
15+
16+
817
# Interpreter Configuration
918

1019
Configure the following properties during Interpreter creation.

bigquery/src/main/java/org/apache/zeppelin/bigquery/BigQueryInterpreter.java

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
/**
2-
* Copyright 2016 Google Inc.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
1+
/*
2+
* Copyright 2016 Google Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
1615

1716
package org.apache.zeppelin.bigquery;
1817

bigquery/src/test/java/org/apache/zeppelin/bigquery/BigQueryInterpreterTest.java

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
/**
2-
* Copyright 2016 Google Inc.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
1+
/*
2+
* Copyright 2016 Google Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
1615

1716
package org.apache.zeppelin.bigquery;
1817

0 commit comments

Comments
 (0)