Sha256: 835f3b2f3db8d7dacfd58edda2782b55e20e072062811070a7fe866c46957eef

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

# Column filter plugin for Embulk

[![Build Status](https://secure.travis-ci.org/sonots/embulk-filter-column.png?branch=master)](http://travis-ci.org/sonots/embulk-filter-column)

A filter plugin for Embulk to filter out columns

## Configuration

- **columns**: columns (array of hash, required)
  - **name**: name of column
  - **default**: default value used if input is null
  - **format**: special option for timestamp column, specify the format of the default timestamp (string, default is `%Y-%m-%d %H:%M:%S.%N %z`)
  - **timezone**: special option for timestamp column, specify the timezone of the default timestamp (string, default is `UTC`)

NOTE: column type is automatically retrieved from input data (inputSchema)

## Example

```yaml
filters:
  - type: column
    columns:
      - {name: time, default: "2015-07-13", format: "%Y-%m-%d"}
      - {name: id}
      - {name: name, default: "foo"}
```

reduces columns to only `time`, `id`, and `name` columns.

## ToDo

* Write test

## Development

Run example:

```
$ ./gradlew classpath
$ embulk run -I lib example.yml
```

Run test:

```
$ ./gradlew test
```

Release gem:

```
$ ./gradlew gemPush
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
embulk-filter-column-0.1.6 README.md