hive_create_table: Given a data.frame, creates a query to create a remote hive...

Description Usage Arguments Value Examples

View source: R/hive_utilities.R

Description

Given a data.frame, creates a query to create a remote hive table

Usage

1
hive_create_table(df, table_name, remote_path, sep = ",")

Arguments

df

the data frame

table_name

the output table name

remote_path

path to hdfs or s3 bucket where the CSV is stored

sep

separator

Value

a string with the query

Examples

1
2
3
4
query <- hive_create_table(impressions, 'default.impressions', 's3://alexr-bucket/impressions')
query <- hive_create_table(impressions, 'default.impressions', '/alexr-hdfs/impressions/')

executeAthenaQuery(query)

alesaccoia/alexr documentation built on Dec. 19, 2021, 12:26 a.m.