Skip to content

Adds support for Apache Hive LLAP#107

Merged
schuemie merged 29 commits into
OHDSI:developfrom
odysseusinc:issue-1168-hive-support
Feb 7, 2020
Merged

Adds support for Apache Hive LLAP#107
schuemie merged 29 commits into
OHDSI:developfrom
odysseusinc:issue-1168-hive-support

Conversation

@wivern

@wivern wivern commented Jan 15, 2020

Copy link
Copy Markdown
Contributor

Comment thread 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
Copy Markdown
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

schuemie commented Feb 7, 2020

Copy link
Copy Markdown
Member

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