BigQuery Maven Plugin Parent


Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка
Группа

Группа

io.allune
Идентификатор

Идентификатор

bigquery-maven-plugin-parent
Последняя версия

Последняя версия

1.1.2
Дата

Дата

Тип

Тип

pom
Описание

Описание

BigQuery Maven Plugin Parent
BigQuery Maven Plugin Parent
Ссылка на сайт

Ссылка на сайт

https://github.com/esanchezros/bigquery-maven-plugin
Организация-разработчик

Организация-разработчик

Allune Software Ltd.
Система контроля версий

Система контроля версий

https://github.com/esanchezros/bigquery-maven-plugin

Скачать bigquery-maven-plugin-parent

Имя Файла Размер
bigquery-maven-plugin-parent-1.1.2.pom 10 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/io.allune/bigquery-maven-plugin-parent/ -->
<dependency>
    <groupId>io.allune</groupId>
    <artifactId>bigquery-maven-plugin-parent</artifactId>
    <version>1.1.2</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/io.allune/bigquery-maven-plugin-parent/
implementation 'io.allune:bigquery-maven-plugin-parent:1.1.2'
// https://jarcasting.com/artifacts/io.allune/bigquery-maven-plugin-parent/
implementation ("io.allune:bigquery-maven-plugin-parent:1.1.2")
'io.allune:bigquery-maven-plugin-parent:pom:1.1.2'
<dependency org="io.allune" name="bigquery-maven-plugin-parent" rev="1.1.2">
  <artifact name="bigquery-maven-plugin-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='io.allune', module='bigquery-maven-plugin-parent', version='1.1.2')
)
libraryDependencies += "io.allune" % "bigquery-maven-plugin-parent" % "1.1.2"
[io.allune/bigquery-maven-plugin-parent "1.1.2"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • bigquery-maven-plugin

Build Status codecov Apache 2

BigQuery Maven plugin

This Maven plugin provides goals to create datasets, tables and views in Google BigQuery.

How to use

In your application, add the following plugin to your pom.xml:

<plugin>
    <groupId>io.allune</groupId>
    <artifactId>bigquery-maven-plugin</artifactId>
    <version>1.0.0</version>
    <configuration>
        ...
    </configuration>
</plugin>

Supported goals

Goal Description

bigquery:create

Creates the dataset, tables and views defined in the plugin configuration.

bigquery:create-dataset

Creates the dataset defined in the plugin configuration.

bigquery:clean

Removes the dataset, tables and views defined in the plugin configuration.

bigquery:help

Displays help information on the plugin. Use mvn bigquery:help -Ddetail=true -Dgoal=[goal] for detailed goal documentation.

Example plugin configuration

<plugin>
    <groupId>io.allune</groupId>
    <artifactId>bigquery-maven-plugin</artifactId>
    <version>1.0.0</version>
    <configuration>
        <projectId>your_project_id</projectId>
        <credentialsFile>/credentials.json</credentialsFile>
        <datasetName>your_dataset</datasetName>
        <dataLocation>EU</dataLocation>
    </configuration>
    <executions>
        <execution>
            <id>create</id>
            <goals>
                <goal>create</goal>
            </goals>
            <phase>pre-integration-test</phase>
            <configuration>
                <skip>${skipTests}</skip>
                <createDataset>true</createDataset>
                <sourceUri>gs://folder/data.json</sourceUri>
                <formatOptions>CSV</formatOptions>
                <nativeSchemaLocations>file://${project.basedir}/src/main/resources/bigquery/schemas/dir1</nativeSchemaLocations>
                <externalSchemaLocations>classpath:/bigquery/schemas/dir2</externalSchemaLocations>
                <viewLocations>file://${project.basedir}/src/main/resources/bigquery/views</viewLocations>
            </configuration>
        </execution>
        <execution>
            <id>clean</id>
            <goals>
                <goal>clean</goal>
            </goals>
            <phase>post-integration-test</phase>
            <configuration>
                <skip>${skipTests}</skip>
                <deleteDataset>true</deleteDataset>
                <forceDeleteDataset>true</forceDeleteDataset>
            </configuration>
        </execution>
    </executions>
</plugin>

Schema definition

A JSON schema file consists of a JSON array that contains the following:

  • (Optional) The column’s description

  • The column name

  • The column’s data type

  • (Optional) The column’s mode (if unspecified, mode defaults to NULLABLE)

Table name

The schema file name is used as the table name.

Example

test_table

[
  {
    "name": "id",
    "mode": "NULLABLE",
    "type": "STRING"
  },
  {
    "name": "subject",
    "mode": "NULLABLE",
    "type": "STRING"
  },
  {
    "name": "from",
    "mode": "NULLABLE",
    "type": "STRING"
  },
  {
    "name": "to",
    "mode": "NULLABLE",
    "type": "STRING"
  },
  {
    "name": "cc",
    "mode": "NULLABLE",
    "type": "STRING"
  },
  {
    "name": "body",
    "mode": "NULLABLE",
    "type": "STRING"
  },
  {
    "name": "time",
    "mode": "NULLABLE",
    "type": "TIME"
  },
  {
    "name": "timestamp",
    "mode": "NULLABLE",
    "type": "TIMESTAMP"
  },
  {
    "name": "fields",
    "type": "RECORD",
    "mode": "REPEATED",
    "fields": [
      {
        "name": "field1",
        "type": "STRING",
        "mode": "REQUIRED"
      },
      {
        "name": "moreFields",
        "type": "RECORD",
        "mode": "REPEATED",
        "fields": [
          {
            "name": "field1",
            "type": "STRING",
            "mode": "REQUIRED"
          },
          {
            "name": "field2",
            "type": "STRING",
            "mode": "REQUIRED"
          }
        ]
      }
    ]
  }
]

Версии библиотеки

Версия
1.1.2