https://github.com/iamazeem/kiba-etl-test
Just a simple CSV ETL test using Ruby and Kiba!
https://github.com/iamazeem/kiba-etl-test
etl kiba ruby sample-project
Last synced: 10 months ago
JSON representation
Just a simple CSV ETL test using Ruby and Kiba!
- Host: GitHub
- URL: https://github.com/iamazeem/kiba-etl-test
- Owner: iamazeem
- License: mit
- Created: 2022-06-05T12:53:47.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-06T02:30:58.000Z (about 4 years ago)
- Last Synced: 2024-12-16T08:34:48.166Z (over 1 year ago)
- Topics: etl, kiba, ruby, sample-project
- Language: Ruby
- Homepage: https://github.com/iamazeem/kiba-etl-test
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kiba-etl-test
[](https://github.com/iamazeem/kiba-etl-test/actions/workflows/ci.yml)
Just a simple [CSV](https://en.wikipedia.org/wiki/Comma-separated_values)
[ETL](https://en.wikipedia.org/wiki/Extract,_transform,_load) test using
[Ruby](https://en.wikipedia.org/wiki/Ruby_(programming_language)) and
[Kiba](https://github.com/thbar/kiba)!
[Rakefile](Rakefile) would be the starting point to read the code.
The `item` field is transformed to lowercase; and, the `price` field is
transformed to integer from float and then multiplied by 2.
Source:
```shell
$ cat data/source.csv
id,item,price
1,ABC,6.00
2,XYZ,3.00
```
Destination:
```shell
$ cat data/destination.csv
id,item,price
1,abc,12
2,xyz,6
```
Written and tested on:
- Ubuntu 20.04
- Ruby 2.7.2p137
## Set up
Clone:
```shell
git clone github.com:iamazeem/kiba-etl-test.git
```
Install dependencies:
```shell
bundle install
```
## Run
```shell
bundle exec rake test
```
See input and output files under [data](data) directory.
## License
[MIT](./LICENSE)