Skip to content

Commit

Permalink
Fix provider to be found by AutoService (#25491)
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloem authored Feb 15, 2023
1 parent fd2b161 commit 26735eb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import static org.apache.beam.sdk.values.TypeDescriptors.rows;
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkState;

import com.google.auto.service.AutoService;
import java.util.Collections;
import java.util.List;
import java.util.Map;
Expand All @@ -32,6 +33,7 @@
import org.apache.beam.sdk.schemas.Schema.Field;
import org.apache.beam.sdk.schemas.Schema.FieldType;
import org.apache.beam.sdk.schemas.transforms.SchemaTransform;
import org.apache.beam.sdk.schemas.transforms.SchemaTransformProvider;
import org.apache.beam.sdk.schemas.transforms.TypedSchemaTransformProvider;
import org.apache.beam.sdk.transforms.MapElements;
import org.apache.beam.sdk.transforms.PTransform;
Expand All @@ -44,6 +46,7 @@
* A {@link TypedSchemaTransformProvider} implementation for writing a {@link Row} {@link
* PCollection} to file systems, driven by a {@link FileWriteSchemaTransformConfiguration}.
*/
@AutoService(SchemaTransformProvider.class)
public class FileWriteSchemaTransformProvider
extends TypedSchemaTransformProvider<FileWriteSchemaTransformConfiguration> {

Expand Down

0 comments on commit 26735eb

Please sign in to comment.