Learn R Programming

SparkR (version 3.1.2)

listColumns: Returns a list of columns for the given table/view in the specified database

Description

Returns a list of columns for the given table/view in the specified database.

Usage

listColumns(tableName, databaseName = NULL)

Arguments

tableName

the qualified or unqualified name that designates a table/view. If no database identifier is provided, it refers to a table/view in the current database. If databaseName parameter is specified, this must be an unqualified name.

databaseName

(optional) name of the database

Value

a SparkDataFrame of the list of column descriptions.

Examples

Run this code
# NOT RUN {
sparkR.session()
listColumns("mytable")
# }

Run the code above in your browser using DataLab