Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate iceberg-pig #11379

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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