@@ -110,7 +110,7 @@ public ListenableFuture<?> internalExecute(CreateTable statement, Metadata metad
110
110
return immediateFuture (null );
111
111
}
112
112
113
- ConnectorId connectorId = getConnectorIdOrThrow (session , metadata , tableName .getCatalogName ());
113
+ ConnectorId connectorId = getConnectorIdOrThrow (session , metadata , tableName .getLegacyCatalogName ());
114
114
115
115
LinkedHashMap <String , ColumnMetadata > columns = new LinkedHashMap <>();
116
116
Map <String , Object > inheritedProperties = ImmutableMap .of ();
@@ -120,7 +120,7 @@ public ListenableFuture<?> internalExecute(CreateTable statement, Metadata metad
120
120
if (element instanceof ColumnDefinition ) {
121
121
ColumnDefinition column = (ColumnDefinition ) element ;
122
122
String columnName = column .getName ().getValue ();
123
- String name = metadata .normalizeIdentifier (session , tableName .getCatalogName (), columnName , column .getName ().isDelimited ());
123
+ String name = metadata .normalizeIdentifier (session , tableName .getLegacyCatalogName (), columnName , column .getName ().isDelimited ());
124
124
Type type ;
125
125
try {
126
126
type = metadata .getType (parseTypeSignature (column .getType ()));
@@ -141,7 +141,7 @@ public ListenableFuture<?> internalExecute(CreateTable statement, Metadata metad
141
141
Map <String , Expression > sqlProperties = mapFromProperties (column .getProperties ());
142
142
Map <String , Object > columnProperties = metadata .getColumnPropertyManager ().getProperties (
143
143
connectorId ,
144
- tableName .getCatalogName (),
144
+ tableName .getLegacyCatalogName (),
145
145
sqlProperties ,
146
146
session ,
147
147
metadata ,
@@ -158,8 +158,8 @@ public ListenableFuture<?> internalExecute(CreateTable statement, Metadata metad
158
158
else if (element instanceof LikeClause ) {
159
159
LikeClause likeClause = (LikeClause ) element ;
160
160
QualifiedObjectName likeTableName = createQualifiedObjectName (session , statement , likeClause .getTableName ());
161
- getConnectorIdOrThrow (session , metadata , likeTableName .getCatalogName (), statement , likeTableCatalogError );
162
- if (!tableName .getCatalogName ().equals (likeTableName .getCatalogName ())) {
161
+ getConnectorIdOrThrow (session , metadata , likeTableName .getLegacyCatalogName (), statement , likeTableCatalogError );
162
+ if (!tableName .getLegacyCatalogName ().equals (likeTableName .getLegacyCatalogName ())) {
163
163
throw new SemanticException (NOT_SUPPORTED , statement , "LIKE table across catalogs is not supported" );
164
164
}
165
165
TableHandle likeTable = metadata .getMetadataResolver (session ).getTableHandle (likeTableName )
@@ -215,7 +215,7 @@ else if (element instanceof ConstraintSpecification) {
215
215
Map <String , Expression > sqlProperties = mapFromProperties (statement .getProperties ());
216
216
Map <String , Object > properties = metadata .getTablePropertyManager ().getProperties (
217
217
connectorId ,
218
- tableName .getCatalogName (),
218
+ tableName .getLegacyCatalogName (),
219
219
sqlProperties ,
220
220
session ,
221
221
metadata ,
@@ -225,7 +225,7 @@ else if (element instanceof ConstraintSpecification) {
225
225
226
226
ConnectorTableMetadata tableMetadata = new ConnectorTableMetadata (toSchemaTableName (tableName , metadata , session ), ImmutableList .copyOf (columns .values ()), finalProperties , statement .getComment (), constraints , Collections .emptyMap ());
227
227
try {
228
- metadata .createTable (session , tableName .getCatalogName (), tableMetadata , statement .isNotExists ());
228
+ metadata .createTable (session , tableName .getLegacyCatalogName (), tableMetadata , statement .isNotExists ());
229
229
}
230
230
catch (PrestoException e ) {
231
231
// connectors are not required to handle the ignoreExisting flag
0 commit comments