diff --git a/presto-hive-common/src/main/java/com/facebook/presto/hive/BaseHiveColumnHandle.java b/presto-hive-common/src/main/java/com/facebook/presto/hive/BaseHiveColumnHandle.java new file mode 100644 index 000000000000..8d0c2302e5bb --- /dev/null +++ b/presto-hive-common/src/main/java/com/facebook/presto/hive/BaseHiveColumnHandle.java @@ -0,0 +1,22 @@ +/* + * Licensed 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. + */ +package com.facebook.presto.hive; + +import com.facebook.presto.spi.ColumnHandle; + +public interface BaseHiveColumnHandle + extends ColumnHandle +{ + String getName(); +} diff --git a/presto-hive/src/main/java/com/facebook/presto/hive/HiveColumnHandle.java b/presto-hive/src/main/java/com/facebook/presto/hive/HiveColumnHandle.java index d97aac57a8f6..81e47dc9c42b 100644 --- a/presto-hive/src/main/java/com/facebook/presto/hive/HiveColumnHandle.java +++ b/presto-hive/src/main/java/com/facebook/presto/hive/HiveColumnHandle.java @@ -40,7 +40,7 @@ import static java.util.Objects.requireNonNull; public class HiveColumnHandle - implements ColumnHandle + implements BaseHiveColumnHandle { public static final int PATH_COLUMN_INDEX = -11; public static final String PATH_COLUMN_NAME = "$path";