Skip to content

Commit

Permalink
Another trivial flink test fix
Browse files Browse the repository at this point in the history
Fix test helper method so that only .checkpoint.parquet files are returned (and not, for example, .crc files)

Closes #1850
  • Loading branch information
tdas committed Jun 21, 2023
1 parent e1a84d2 commit 8dc9000
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,6 @@ public void testSinkDeltaCheckpoint() throws Exception {

// Now there should be a Delta Checkpoint under _delta_log folder.
List<String> deltaCheckpointFiles = getDeltaCheckpointFiles(deltaTablePath);
assertThat(
"Missing Delta's last checkpoint file",
deltaCheckpointFiles.contains("_last_checkpoint"),
equalTo(true)
);
assertThat(
"Missing Delta's checkpoint file",
deltaCheckpointFiles.contains("00000000000000000010.checkpoint.parquet"),
Expand Down
26 changes: 26 additions & 0 deletions connectors/flink/src/test/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################

# Root logger option
log4j.rootLogger=WARN, stdout

# Redirect log messages to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

0 comments on commit 8dc9000

Please sign in to comment.