Skip to content

Commit

Permalink
fix: only run create_hypertable on new tables
Browse files Browse the repository at this point in the history
  • Loading branch information
rbalaban-mdsol committed Nov 1, 2022
1 parent 027a670 commit 96a9f5b
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,12 @@ case class JdbcSinkConfig[ADT <: FlinkEvent](
sqlBuilder.append(");").getSqlAndClear
}

logger.info(
s"creating hypertable for [$table]: \n====\n$createHypertableDml\n====\n"
)

stmt.executeQuery(createHypertableDml)
if (createTable) {
logger.info(
s"creating hypertable for [$table]: \n====\n$createHypertableDml\n====\n"
)
stmt.executeQuery(createHypertableDml)
}
}

stmt.close()
Expand Down

0 comments on commit 96a9f5b

Please sign in to comment.