Skip to content

Commit

Permalink
Deprecate iceberg-pig (#11379)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbonofre authored Oct 24, 2024
1 parent 12ac3ee commit fdc2c22
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* @deprecated will be removed in 1.8.0
*/
@Deprecated
public class IcebergPigInputFormat<T> extends InputFormat<Void, T> {
private static final Logger LOG = LoggerFactory.getLogger(IcebergPigInputFormat.class);

Expand All @@ -68,6 +72,7 @@ public class IcebergPigInputFormat<T> extends InputFormat<Void, T> {
private List<InputSplit> splits;

IcebergPigInputFormat(Table table, String signature) {
LOG.warn("Iceberg Pig is deprecated and will be removed in Iceberg 1.8.0");
this.table = table;
this.signature = signature;
}
Expand Down
8 changes: 8 additions & 0 deletions pig/src/main/java/org/apache/iceberg/pig/IcebergStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* @deprecated will be removed in 1.8.0
*/
@Deprecated
public class IcebergStorage extends LoadFunc
implements LoadMetadata, LoadPredicatePushdown, LoadPushDown {
private static final Logger LOG = LoggerFactory.getLogger(IcebergStorage.class);
Expand All @@ -77,6 +81,10 @@ public class IcebergStorage extends LoadFunc

private IcebergRecordReader reader;

public IcebergStorage() {
LOG.warn("Iceberg Pig is deprecated and will be removed in Iceberg 1.8.0");
}

@Override
public void setLocation(String location, Job job) {
LOG.info("[{}]: setLocation() -> {}", signature, location);
Expand Down
13 changes: 12 additions & 1 deletion pig/src/main/java/org/apache/iceberg/pig/PigParquetReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,20 @@
import org.apache.pig.data.DataByteArray;
import org.apache.pig.data.Tuple;
import org.apache.pig.data.TupleFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* @deprecated will be removed in 1.8.0
*/
@Deprecated
public class PigParquetReader {
private PigParquetReader() {}

private static final Logger LOG = LoggerFactory.getLogger(PigParquetReader.class);

private PigParquetReader() {
LOG.warn("Iceberg Pig is deprecated and will be removed in Iceberg 1.8.0");
}

@SuppressWarnings("unchecked")
public static ParquetValueReader<Tuple> buildReader(
Expand Down
4 changes: 4 additions & 0 deletions pig/src/main/java/org/apache/iceberg/pig/SchemaUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
import org.apache.pig.data.DataType;
import org.apache.pig.impl.logicalLayer.FrontendException;

/**
* @deprecated will be removed in 1.8.0
*/
@Deprecated
public class SchemaUtil {

private SchemaUtil() {}
Expand Down

0 comments on commit fdc2c22

Please sign in to comment.