Open kyo-tom opened 2 years ago
cc @sopel39
Message is wrong, but we shouldn't be able to create view anyway
Message is wrong, but we shouldn't be able to create view anyway
I had fix this message in hive,but where should I write a test,is it in trino-product-tests module?
@kyo-tom you can base your test on io.trino.execution.TestCreateMaterializedViewTask
io.trino.execution.TestCreateMaterializedViewTask
@sopel39 But it is the behavior of individual plugin, not all of plugin
@sopel39 But it is the behavior of individual plugin, not all of plugin
It should be generic across catalogs
@sopel39 But it is the behavior of individual plugin, not all of plugin
It should be generic across catalogs
but some plugin is not support create views. Do you mean creating a MockMetadata
Yes, see how io.trino.execution.TestCreateMaterializedViewTask
works
https://github.com/trinodb/trino/pull/10186 fixed this on CreateViewTask
level, but this also should be fixed in individual connectors' metadata classes, to take care of view/table conflict resulting from concurrent creation.
With Hive connector
CREATE VIEW is rejected when a table with the same name exists,but fail information indicates that the view already exists instead of the table already exists