prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
15.97k stars 5.35k forks source link

Let connector metadata existing in presto-main utilize newer SPI method #23113

Closed hantangwangd closed 3 months ago

hantangwangd commented 3 months ago

Description

PR #21933 has deprecated SPI method ConnectorMetadata.getTableLayouts(), and introduced a new SPI method ConnectorMetadata.getTableLayoutForConstraint() to replace it.

This PR re-factor the implementations of ConnectorMetadata existing in presto-main to utilize the newly defined SPI method, and stop to use the deprecated method.

Motivation and Context

Make the implementations of ConnectorMetadata in presto-main more clear and concise

Test Plan

Contributor checklist

Release Notes

== NO RELEASE NOTE ==