Skip to content

Commit

Permalink
[FLINK-4663] [jdbc] Fix JDBCOutputFormat log message
Browse files Browse the repository at this point in the history
This closes apache#2534
  • Loading branch information
pm-swapnil-chougule authored and StephanEwen committed Sep 23, 2016
1 parent 181b545 commit 335a282
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void establishConnection() throws SQLException, ClassNotFoundException {
@Override
public void writeRecord(Row row) throws IOException {

if (typesArray != null && typesArray.length > 0 && typesArray.length == row.productArity()) {
if (typesArray != null && typesArray.length > 0 && typesArray.length != row.productArity()) {
LOG.warn("Column SQL types array doesn't match arity of passed Row! Check the passed array...");
}
try {
Expand Down

0 comments on commit 335a282

Please sign in to comment.