Giter Club home page Giter Club logo

data-engineering-test's Introduction

Data Engineering Test

This repository contains a simple test for data engineering candidates.

The task is to transform a poorly formatted TSV file into a properly formatted, machine-readable TSV file. If you clicked on the link above you may notice that GitHub complains about errors in the file. The file does not explicitly adhere to the TSV format, so just as GitHub cannot accurately parse the file, neither can our Hadoop, Pig, or data warehouse utilities.

Instructions

Your task is to write a simple script to transform data.tsv into a properly formatted tab-separated values (TSV) file that can be read by any standard CSV/TSV parser. The resulting file should have the following properties:

  • Each row contains the same number of fields
  • Fields are separated by tabs \t
  • Fields that contain reserved characters (e.g. \t, \r, \n) are quoted (hint hint)
  • The file is UTF-8 encoded (data.tsv is UTF-16LE encoded)

Scripts can be written in any language and use any tools with which the candidate is familiar. The solution does not need to be generic enough to apply to similar issues in other files; your algorithm can be designed specifically for this data set. Extra points are awarded for resource-efficient and scalable solutions.

To take the test, please complete the following steps:

  1. Fork this repository
  2. Write a script in the language of your choice to convert data/data.tsv into a standard CSV parseable file, adhering to guidelines in the previous section
  3. Commit the script to the root directory of the repository
  4. Submit a pull request to this repository.

Bonus (optional)

For bonus points, ambitious candidates can parallelize their algorithm. A parallelizable implementation will have the following properties:

  • Given an arbitrary byte position and length, the algorithm cleans a portion of the full data set and produces a unique TSV output file
  • Concatenating the outputs of multiple processes should result in a well-formed TSV file containing no duplicates

It's important to note that the arbitrary position may not necessarily be the start of a new line.

data-engineering-test's People

Contributors

kuujo avatar oalaba avatar colinjschmidt avatar chutch3 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.