Example 2: Dimension Table with Default imdcInMemSizeInMB - Aster Execution Engine

Teradata Aster® Developer Guide

Product
Aster Execution Engine
Release Number
7.00.02
Published
July 2017
Language
English (United States)
Last Update
2018-04-13
dita:mapPath
xnl1494366523182.ditamap
dita:ditavalPath
Generic_no_ie_no_tempfilter.ditaval
dita:id
ffu1489104705746
lifecycle
previous
Product Category
Software

SQL-MapReduce Call

The load_into_imdc function creates an IMDC named data2 as a dimension table and loads it with data from Input Table t1. The IMDC occupies the default amount of memory in each partition (10 MB). The function loads the entire table into each partition.

SELECT * FROM load_into_imdc (
  ON t1 PARTITION BY ANY
  ON t1 AS d1 DIMENSION
  imdc ('data2')
) ORDER BY PartIdx;

IMDC data2

PartIdx NumRows TotalMemBytes
0 2 99
1 2 99
2 2 99
3 2 99
4 2 99
5 2 99

(6 rows)