Closed liming30 closed 1 year ago
Thanks @liming30 for reporting.
Yes this is bug, we should throw TableNotExistException
for catalog.
@JingsongLi , hi, I think this is not a problem that the table does not exist. It is because we are using the old TableSchema
to generate the SnapshotManager
, and the old TableSchema
does not contain PATH
(although we put PATH
in the new TableSchema
).
What about setting the PATH
for the TableSchema
when creating the FileStoreTable
?
@JingsongLi , hi, I think this is not a problem that the table does not exist. It is because we are using the old
TableSchema
to generate theSnapshotManager
, and the oldTableSchema
does not containPATH
(although we putPATH
in the newTableSchema
).What about setting the
PATH
for theTableSchema
when creating theFileStoreTable
?
But set path has already done here.
But set path has already done here.
@JingsongLi In tryTimeTravel, we still use the old tableSchema
to initialize the SnapshotManager
, where the PATH
does not exist.
But set path has already done here.
@JingsongLi In tryTimeTravel, we still use the old
tableSchema
to initialize theSnapshotManager
, where thePATH
does not exist.
Thanks, PR reviewed
Search before asking
Paimon version
0.4
Compute Engine
flink-1.16
Minimal reproduce step
Execute the following sql in sql client:
What doesn't meet your expectations?
Creating a Table with timeTravel semantics should not report an error. But I get the following exception:
Anything else?
The reason for the exception is that the table with timeTravel semantics needs to check the snapshot. https://github.com/apache/incubator-paimon/blob/master/paimon-core/src/main/java/org/apache/paimon/table/AbstractFileStoreTable.java#L132
AbstractFileStoreTable#store
will generator the options from theschema
of the table, which does not contain thePATH
configuration, so this exception occurs.At the same time, I found that in many unit tests, if the
scan.mode
of the table is configured as the type of timeTravel, the exception will occur. For exampleFlinkCatalogTest#testCreateTable_Streaming
Should we always put the
PATH
configuration in the table schema?Are you willing to submit a PR?