From 295ae5ab596caaf198b4ae4e3b0a87ed58f6b719 Mon Sep 17 00:00:00 2001 From: Jeffrey Kinard Date: Wed, 27 Nov 2024 18:40:35 -0500 Subject: [PATCH] fix spotless Signed-off-by: Jeffrey Kinard --- .../JdbcWriteSchemaTransformProvider.java | 4 ---- .../sdk/io/jdbc/providers/package-info.java | 20 +++++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/providers/package-info.java diff --git a/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcWriteSchemaTransformProvider.java b/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcWriteSchemaTransformProvider.java index a61fa74b4ce5..64e9a44abbbe 100644 --- a/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcWriteSchemaTransformProvider.java +++ b/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/JdbcWriteSchemaTransformProvider.java @@ -315,10 +315,6 @@ public abstract static class JdbcWriteSchemaTransformConfiguration implements Se @Nullable public abstract Long getBatchSize(); - public void validate() throws IllegalArgumentException { - if (Strings.isNullOrEmpty(getJdbcUrl())) { - throw new IllegalArgumentException("JDBC URL cannot be blank"); - } @SchemaFieldDescription( "Type of JDBC source. When specified, an appropriate default Driver will be packaged with the transform. One of mysql, postgres, oracle, or mssql.") @Nullable diff --git a/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/providers/package-info.java b/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/providers/package-info.java new file mode 100644 index 000000000000..db5bba936596 --- /dev/null +++ b/sdks/java/io/jdbc/src/main/java/org/apache/beam/sdk/io/jdbc/providers/package-info.java @@ -0,0 +1,20 @@ +/* + * 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. + */ + +/** Transforms for reading and writing from JDBC. */ +package org.apache.beam.sdk.io.jdbc.providers;