Skip to content

Commit 4b82abd

Browse files
committed
Fixed license header and added manual unit test documentation
1 parent 87f5efe commit 4b82abd

File tree

3 files changed

+39
-20
lines changed

3 files changed

+39
-20
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: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
/*
2-
* Licensed under the Apache License, Version 2.0 (the "License");
3-
* you may not use this file except in compliance with the License.
4-
* You may obtain a copy of the License at
5-
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
610
* http://www.apache.org/licenses/LICENSE-2.0
7-
8-
* Unless required by applicable law or agreed to in writing, software
9-
* distributed under the License is distributed on an "AS IS" BASIS,
10-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11-
* See the License for the specific language governing permissions and
12-
* limitations under the License.
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
1318
*/
1419

1520
package org.apache.zeppelin.bigquery;

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

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
/*
2-
* Licensed under the Apache License, Version 2.0 (the "License");
3-
* you may not use this file except in compliance with the License.
4-
* You may obtain a copy of the License at
5-
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
610
* http://www.apache.org/licenses/LICENSE-2.0
7-
8-
* Unless required by applicable law or agreed to in writing, software
9-
* distributed under the License is distributed on an "AS IS" BASIS,
10-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11-
* See the License for the specific language governing permissions and
12-
* limitations under the License.
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
1318
*/
1419

1520
package org.apache.zeppelin.bigquery;

0 commit comments

Comments
 (0)