trino icon indicating copy to clipboard operation
trino copied to clipboard

Return information about hive unsupported views and tables during listing

Open pajaks opened this issue 1 year ago • 2 comments

In case of fetching information from information_schema with table_name predicate when table/view is not supported (e.g Table SerdeInfo is null) user get empty results. This should be improved.

Example queries (tests in TestHiveMetadataListing):

SELECT table_name FROM information_schema.tables WHERE table_schema = 'test_schema' AND table_name = 'unsupported_table'
SELECT table_name FROM information_schema.views WHERE table_schema = 'test_schema' AND table_name = 'unsupported_view'

pajaks avatar May 16 '24 08:05 pajaks

user get empty results. This should be improved.

what would you expect instead?

BTW are you aware of https://github.com/trinodb/trino/issues/6551 and https://github.com/trinodb/trino/issues/6551#issuecomment-903798696 in particular?

findepi avatar May 16 '24 08:05 findepi

what would you expect instead?

@ebyhr suggestion was to return table_name from predicate in case of some specific errors like UNSUPPORTED_TABLE_TYPE as we know that such table exists.

pajaks avatar May 16 '24 08:05 pajaks