Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for Apache Hive LLAP #107

Merged
merged 29 commits into from
Feb 7, 2020

Conversation

wivern
Copy link
Contributor

@wivern wivern commented Jan 15, 2020

R/InsertTable.R Outdated
}

ctasHack <- function(connection, qname, tempTable, varNames, fts, data, progressBar, oracleTempSchema) {
batchSize <- 1000
batchSize <- (function(dbms) if (dbms %in% c("hive")) 750 else 1000)( attr(connection, "dbms") )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is hard to read, for no reason. Please rewrite as

if (attr(connection, "dbms") == "hive") {
  batchSize <- 750
} else {
  batchSize <- 1000
}

@schuemie
Copy link
Member

schuemie commented Feb 7, 2020

Looks good, and still runs on PDW. I would like you to make the 1 change I pointed out

@schuemie schuemie merged commit 3e8d2ee into OHDSI:develop Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants