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
Make sure the re-factor do not affect existing test cases
Description
PR #21933 has deprecated SPI method
ConnectorMetadata.getTableLayouts()
, and introduced a new SPI methodConnectorMetadata.getTableLayoutForConstraint()
to replace it.This PR re-factor the implementations of
ConnectorMetadata
existing inpresto-main
to utilize the newly defined SPI method, and stop to use the deprecated method.Motivation and Context
Make the implementations of
ConnectorMetadata
inpresto-main
more clear and conciseTest Plan
Contributor checklist
Release Notes