Teradata enterprise
This topic describes Teradata data source setup and Dremio configuration.
Teradata Setup
To setup Teradata as a data source:
- Download your Teradata JDBC jars.
- Move the tdgssconfig.jar and TeraJDBC.jar files into the /opt/dremio/jars/3rdparty directory on every Dremio node. Note: The Teradata JDBC 16.20+ driver does not need the tdgssconfig.jar file.
- Contact support@dremio.com for access to the Teradata Dremio Plugin JAR.
- Download and move the Plugin JAR into the /opt/dremio/jars directory.
- Restart Dremio coordinators and executors. The Teradata data source should appear in the New Source page.
Dremio Configuration
Dremio provides the following configuration settings when adding the data source.
General
Specify general options with the following settings.
Connection
Name | Description |
---|---|
Host | Teradata host name. |
Port | Teradata port number. Defaults to 1025. |
Service Name | Service Name of your database. |
Authentication
- No authentication method
- Master Authentication method (default)
- Username – Teradata user name
- Password – Teradata password
- Encrypt connection – Enables secure connections.
Advanced Options
Specify advanced options with the following settings.
- Show only the initial database used for connecting.
- Record fetch size: Number of records to fetch at once. Set to 0 (zero) to have Dremio automatically decide. Default: 10
- Maximum idle connections: The total number of connections allowed to be idle at a given time. By default, this is set to 8.
- Connection idle time (s): The amount of time (in seconds) allowed for a connection to remain idle before the connection is terminated. By default, this is set to 60.
- Query timeout: The amount of time (in seconds) allowed to wait for the results of a query. If this time expires, the connection being used is returned to an idle state.
Reflection Refresh
Specify refresh policy options with the following settings.
- Never refresh – Specifies how often to refresh based on hours, days, weeks, or never.
- Never expire – Specifies how often to expire based on hours, days, weeks, or never.
Metadata
Specify metadata options is handled with the following settings.
Dataset Handling
- Remove dataset definitions if underlying data is unavailable (Default).
- If this box is not checked and the underlying files under a folder are removed or the folder/source is not accessible, Dremio does not remove the dataset definitions. This option is useful in cases when files are temporarily deleted and put back in place with new sets of files.
Metadata Refresh
- Dataset Discovery – Refresh interval for top-level source object names such as names of DBs and tables.
- Fetch every – Specify fetch time based on minutes, hours, days, or weeks. Default: 1 hour
- Dataset Details – The metadata that Dremio needs for query planning such as information needed for
fields, types, shards, statistics, and locality.
- Fetch mode – Specify either Only Queried Datasets, All Datasets, or As Needed. Default: Only Queried Datasets
- Only Queried Datasets – Dremio updates details for previously queried objects in a source.
This mode increases query performance because less work is needed at query time for these datasets. - All Datasets – Dremio updates details for all datasets in a source. This mode increases query performance because less work is needed at query time.
- As Needed – Dremio updates details for a dataset at query time. This mode minimized metadata queries on a source when not used, but might lead to longer planning times.
- Only Queried Datasets – Dremio updates details for previously queried objects in a source.
- Fetch every – Specify fetch time based on minutes, hours, days, or weeks. Default: 1 hour
- Expire after – Specify expiration time based on minutes, hours, days, or weeks. Default: 3 hours
- Fetch mode – Specify either Only Queried Datasets, All Datasets, or As Needed. Default: Only Queried Datasets
Sharing
Specify which users can edit with the following settings.
- All users can edit.
- Specific users can edit.
Predicate Pushdowns
Dremio offloads these operations to Teradata:
Operation | Operation | Operation | Operation | Operation |
---|---|---|---|---|
<, <=, <>, =, >=, >, != | DATE_ADD | FLOOR | POSITION | TAN |
*, +, -, / | DATE_SUB | IS DISTINCT FROM | POW | TANH |
AND, NOT, OR, || | DATE_TRUNC_DAY | IS NOT DISTINCT FROM | POWER | TIMESTAMPADD_DAY |
ABS | DATE_TRUNC_MONTH | IS NOT NULL | RADIANS | TIMESTAMPADD_HOUR |
ACOS | DATE_TRUNC_QUARTER | IS NULL | REPLACE | TIMESTAMPADD_MINUTE |
ASIN | DATE_TRUNC_WEEK | LCASE | REVERSE | TIMESTAMPADD_MONTH |
ATAN | DATE_TRUNC_YEAR | LEFT | RIGHT | TIMESTAMPADD_SECOND |
ATAN2 | DEGREES | LENGTH | ROUND | TIMESTAMPADD_YEAR |
AVG | E | LIKE | RPAD | TIMESTAMPDIFF_YEAR |
CAST | EXP | LN | RTRIM | TO_CHAR |
CEIL | EXTRACT_DAY | LOCATE | SIGN | TO_DATE |
CEILING | EXTRACT_DOW | LOG | SIN | TRIM |
CHAR_LENGTH | EXTRACT_DOY | LOG10 | SINH | TRUNC |
CHARACTER_LENGTH | EXTRACT_HOUR | LOWER | SQRT | TRUNCATE |
CONCAT | EXTRACT_MINUTE | LPAD | STDDEV | UCASE |
COS | EXTRACT_MONTH | LTRIM | STDDEV_POP | UPPER |
COSH | EXTRACT_QUARTER | MAX | STDDEV_SAMP | VAR_POP |
COT | EXTRACT_SECOND | MIN | SUBSTR | VAR_SAMP |
COVAR_POP | EXTRACT_WEEK | MOD | SUBSTRING | |
COVAR_SAMP | EXTRACT_YEAR | PI | SUM |
Was this page helpful?
Glad to hear it! Thank you for your feedback.
Sorry to hear that. Thank you for your feedback.