load_into_imdc - 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

The load_into_imdc function loads data from its input into an IMDC, which it creates, and reports the number of rows loaded into each partition.

Syntax

SELECT * FROM load_into_imdc (
  input
  imdc (imdc_name)
  [ imdcInMemSizeInMB ('memory_size') ]
);

Input

One or more sources of data to load into the IMDC. The inputs must meet the Semantic Requirements for SQL-MapReduce Functions.

Arguments

imdc
Specifies the name of the IMDC to create and load with data. If an IMDC with the specified name already exists, the function throws the exception InMemoryDataCollectionAlreadyExistsException.
imdcInMemSizeInMB
[Optional] Specifies amount of memory (MB) for the IMDC to use for each partition. If the IMDC data exceeds this amount, the extra data overflows to the disk. Default: 10 MB.

Schema of Created IMDC

Column Name Description
PartIdx Partition index.
NumRows Number of rows inserted into the partion.
TotalMemBytes Total memory (bytes) used by the IMDC in the partition.