Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

EXPORT MODEL

ali1rathore edited this page Sep 10, 2018 · 1 revision

Grammar

EXPORT MODEL [ COMPONENTS ] [ starschema | snapindex | stats | all ]
      ON <fact-table> TO "/path/to/output/directory"

Description

Command to export a SNAP Model.

  • Components can be starschema, snapindex, stats or all; default is all
  • The user can optionally specify the root folder to export to; if not specified the spark.sparklinedata.spmd.model.folder setting controls the root folder location.
  • Model components are exported to db/table folder under the root folder. There is a separate json file for each component.

Examples

-- export all components
export model on lineitem_small to '/tmp';

-- export starschema
export model components starschema on lineitem_small to '/tmp'

-- export snapindex
export model snapindex on lineitem_small to '/tmp'
Clone this wiki locally