td_set_data() | Teradata R Package - td_set_data() - Teradata Package for R

Teradata® Package for R User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for R
Release Number
17.20
Published
March 2024
Language
English (United States)
Last Update
2024-04-09
dita:mapPath
efv1707506846369.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
nqx1518630623256
Product Category
Teradata Vantage

The td_set_data() function enables the user to set data and data related arguments without having to re-create ScriptTableOperator object.

All data related arguments that are not specified in this function are reset to default values.
> script_obj <- td_set_data(object = script_obj,
                            data = barrier %>% select(Name)
  )
The list element "data.order.column" is set to NULL as this function resets the values to default values if not provided, irrespective of whether it is provided in Script() function call or not.
> script_obj
$script.command
[1] "Rscript ./TDAPUSERDB/mapper.R"
$returns
$returns$word
[1] "VARCHAR(15)"
$returns$count_input
[1] "VARCHAR(2)"
$data
# Source:   lazy query [?? x 1]
# Database: [Teradata 16.20.27.01] [Teradata Native Driver 17.0.0.4]
#   [TDAPUSER@<hostname>1025/TDAPUSERDB]
  Name                   
  <chr>                  
1 Old Macdonald Had A Farm
$data.hash.column
NULL
$data.partition.column
NULL
$data.order.column
NULL
$is.local.order
[1] FALSE
$sort.ascending
[1] TRUE
$nulls.first
[1] TRUE
$delimiter
[1] "\t"
$auth
NULL
$charset
[1] "LATIN"
$quotechar
NULL
attr(,"class")
[1] "ScriptTableOperator"