Learn R Programming

datarobot (version 2.18.6)

CreateDataSource: Create a data source.

Description

Create a data source.

Usage

CreateDataSource(
  type,
  canonicalName,
  dataStoreId,
  query = NULL,
  table = NULL,
  schema = NULL,
  partitionColumn = NULL,
  fetchSize = NULL
)

Arguments

type

character. The type of data source.

canonicalName

character. The user-friendly name of the data source.

dataStoreId

character. The ID of the data store to connect to.

query

character. A query to execute on the data store to get the data. Optional.

table

character. The specified database table. Optional.

schema

character. The specified database schema. Optional.

partitionColumn

character. The name of the partition column. Optional.

fetchSize

integer. a user specified fetch size in the range [1, 20000]. Optional. By default a fetchSize will be assigned to balance throughput and memory usage

Examples

Run this code
if (FALSE) {
 dataStoreId <- "5c1303269300d900016b41a7"
 CreateDataSource(type = "jdbc",
                  canonicalName = "Airline stats after 1995",
                  dataStoreId = dataStoreId,
                  query = 'SELECT * FROM airlines10mb WHERE "Year" >= 1995;')
}

Run the code above in your browser using DataLab