SGITLOGIN commented on issue #11961:
URL: https://github.com/apache/iceberg/issues/11961#issuecomment-2591465958
> > I create the same table again. How can I restore this part of the data?
>
> What do you mean by `this part of the data`? Which catalog are you using?
@manuzhang Hello,Spark configuration, execution process and problems are as
follows:
Spark configuration:
`
spark.sql.catalog.spark_catalog =
org.apache.iceberg.spark.SparkSessionCatalog
spark.sql.catalog.spark_catalog.type = hive
spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions
`
Create table:
`
CREATE TABLE iceberg_db.sample_oss_time_travel (
id string,
data string,
category string)
USING iceberg
PARTITIONED BY (category)
LOCATION 'oss://bigdata/test/changguowei/sample_oss_time_travel';
`
Insert data:
`
INSERT INTO iceberg_db.sample_oss_time_travel VALUES ('1', 'a',
'2025-01-13');
`
Drop table:( This method does not involve physical deletion )
`
drop table iceberg_db.sample_oss_time_travel;
`
<img width="934" alt="Image"
src="https://github.com/user-attachments/assets/c0f1413c-6650-4a82-9ad1-adb4347940ac"
/>
<img width="926" alt="Image"
src="https://github.com/user-attachments/assets/ff6a9b8f-5927-4124-83bb-97c22c9098bb"
/>
Question:
At this point, I want to rebuild the table and restore the previous data.
My understanding is that since there is a non physical deletion method, is
there also a recovery plan? Otherwise, adding or not adding purge when dropping
the table would result in the same outcome, and the data would not be usable?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]