https://github.com/antonyhaman/scala-test-task
Test task for an interview process executed in Scala language
https://github.com/antonyhaman/scala-test-task
Last synced: 3 months ago
JSON representation
Test task for an interview process executed in Scala language
- Host: GitHub
- URL: https://github.com/antonyhaman/scala-test-task
- Owner: antonyhaman
- Created: 2016-12-27T20:36:02.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T21:30:55.000Z (over 8 years ago)
- Last Synced: 2025-01-15T07:27:43.367Z (9 months ago)
- Language: Scala
- Homepage:
- Size: 1.27 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scala-test-task
This is a test task for an interview executed using the Scala language. The task was as following:>Problem:
>You are provided with the *.csv.gz file containing some data about plane flights.
>
>Data has the following schema
>"YEAR","QUARTER","MONTH","DAY_OF_MONTH","DAY_OF_WEEK","FL_DATE","ORIGIN","DEST"
>
>You'll need to extract several statistics out of the data file:
>List of all airports with total number of planes for the whole period that arrived to each airport
>Non-Zero difference in total number of planes that arrived to and left from the airport
>Do the point 1 but sum number of planes separately per each week
>Write some tests for the implemented functions
>Each point 1-3 should produce a separate output file.# Technologies used
- Scala
- SBT
- Scala-csv (as a csv reader)
- Specs2 (as a testing framework)# How to install and run
This is the SBT-based project so there's nothing special:
1. Clone the project
2. Execute 'sbt test run' in a command line, this will launch the tests and the Main if succeeded
3. Check the results in target/output