You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2025/12/12 17:07:00 UTC
[jira] [Commented] (IMPALA-14536) ALTER TABLE CONVERT TO ICEBERG should be idempotent
[ https://issues.apache.org/jira/browse/IMPALA-14536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18044725#comment-18044725 ]
ASF subversion and git services commented on IMPALA-14536:
----------------------------------------------------------
Commit 9d112dae23870b6729473047da94f1bc0ea89ceb in impala's branch refs/heads/master from Daniel Vanko
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=9d112dae2 ]
IMPALA-14536: Fix CONVERT TO ICEBERG to not throw exception on Iceberg tables
Previously, running ALTER TABLE <table> CONVERT TO ICEBERG on an Iceberg
table produced an error. This patch fixes that, so the statement will do
nothing when called on an Iceberg table and return with 'Table has
already been migrated.' message.
This is achieved by adding a new flag to StatementBase to signal when a
statement ends up NO_OP, if that's true, the new TStmtType::NO_OP will
be set as TExecRequest's type and noop_result can be used to set result
from Frontend-side.
Tests:
* extended fe and e2e tests
Change-Id: I41ecbfd350d38e4e3fd7b813a4fc27211d828f73
Reviewed-on: http://gerrit.cloudera.org:8080/23699
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Peter Rozsa <pr...@cloudera.com>
> ALTER TABLE CONVERT TO ICEBERG should be idempotent
> ---------------------------------------------------
>
> Key: IMPALA-14536
> URL: https://issues.apache.org/jira/browse/IMPALA-14536
> Project: IMPALA
> Issue Type: Bug
> Components: Catalog, Frontend
> Affects Versions: Impala 4.3.0
> Reporter: Michael Smith
> Assignee: Dániel Gábor Vankó
> Priority: Major
> Labels: impala-iceberg, newbie, ramp-up
> Fix For: Impala 5.0.0
>
>
> Running {{ALTER TABLE <table> CONVERT TO ICEBERG}} on an Iceberg table should do nothing rather than produce the error
> {code}
> AnalysisException: CONVERT TO ICEBERG is not supported for org.apache.iceberg.mr.hive.HiveIcebergInputFormat
> {code}
> I run into this sometimes re-running functional-query dataload, because it creates a table and converts it to iceberg. Most of the time re-running dataload will just re-run, but in this case it errors because the table has already been converted to iceberg.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org