Skip to content

Instantly share code, notes, and snippets.

@Stiivi
Last active December 14, 2015 01:28
Show Gist options
  • Save Stiivi/5006088 to your computer and use it in GitHub Desktop.
Save Stiivi/5006088 to your computer and use it in GitHub Desktop.

Cubes Datamart Package

Purpose: sharing of smaller datasets - whole cubes or portions of larger cubes.

Datamart package

Package can be a directory or a ZIP file with following structure:

model.json
data/
    fact_*.csv
    dim_*.csv
info.ini

The info.ini (or some other key-value file):

  • datamart_version – version of datamart package format
  • data_format - currently supported csv or sqlite
  • dimension_prefix
  • fact_prefix

Slicer support

Export:

slicer export [--cut=CUT] [--cubes=CUBES] [--compressed] CONFIG PATH

For example:

slicer export --cut=date:2010-2012 --compressed slicer.ini sales.datamart

Serving:

slicer serve --datamart contracts.datamart

Viewer

Launching:

slicer cubes_viewer --datamart contracts.datamart

... will:

  1. prepare workspace
  2. run slicer server
  3. start cubes viewer
  4. launches web browser: webbrowser.open(VIEWER_URL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment