|
11 | 11 | * See the License for the specific language governing permissions and |
12 | 12 | * limitations under the License. |
13 | 13 | */ |
14 | | -package com.facebook.presto.iceberg; |
| 14 | +package com.facebook.presto.iceberg.procedure; |
15 | 15 |
|
16 | 16 | import com.facebook.airlift.json.JsonCodec; |
17 | 17 | import com.facebook.presto.common.predicate.TupleDomain; |
18 | 18 | import com.facebook.presto.common.type.TypeManager; |
| 19 | +import com.facebook.presto.iceberg.CommitTaskData; |
| 20 | +import com.facebook.presto.iceberg.IcebergColumnHandle; |
| 21 | +import com.facebook.presto.iceberg.IcebergDistributedProcedureHandle; |
| 22 | +import com.facebook.presto.iceberg.IcebergProcedureContext; |
| 23 | +import com.facebook.presto.iceberg.IcebergTableHandle; |
| 24 | +import com.facebook.presto.iceberg.IcebergTableLayoutHandle; |
| 25 | +import com.facebook.presto.iceberg.PartitionData; |
19 | 26 | import com.facebook.presto.spi.ConnectorDistributedProcedureHandle; |
20 | 27 | import com.facebook.presto.spi.ConnectorSession; |
21 | 28 | import com.facebook.presto.spi.classloader.ThreadContextClassLoader; |
@@ -90,7 +97,7 @@ public DistributedProcedure get() |
90 | 97 | private ConnectorDistributedProcedureHandle beginCallDistributedProcedure(ConnectorSession session, IcebergProcedureContext procedureContext, IcebergTableLayoutHandle layoutHandle, Object[] arguments) |
91 | 98 | { |
92 | 99 | try (ThreadContextClassLoader ignored = new ThreadContextClassLoader(getClass().getClassLoader())) { |
93 | | - Table icebergTable = procedureContext.getTable().orElseThrow(() -> new VerifyException("No partition data for partitioned table")); |
| 100 | + Table icebergTable = procedureContext.getTable().orElseThrow(() -> new VerifyException("Target table does not exist")); |
94 | 101 | IcebergTableHandle tableHandle = layoutHandle.getTable(); |
95 | 102 |
|
96 | 103 | TupleDomain<IcebergColumnHandle> predicate = layoutHandle.getValidPredicate(); |
|
0 commit comments