@@ -266,7 +266,7 @@ public static void registerUserDefinedFunction(SqlTree sqlTree, List<URL> jarUrl
266
266
*/
267
267
public static Set <URL > registerTable (SqlTree sqlTree , StreamExecutionEnvironment env , StreamTableEnvironment tableEnv , String localSqlPluginPath ,
268
268
String remoteSqlPluginPath , String pluginLoadMode , Map <String , AbstractSideTableInfo > sideTableMap , Map <String , Table > registerTableCache ) throws Exception {
269
- Set <URL > pluginClassPatshSets = Sets .newHashSet ();
269
+ Set <URL > pluginClassPathSets = Sets .newHashSet ();
270
270
WaterMarkerAssigner waterMarkerAssigner = new WaterMarkerAssigner ();
271
271
for (AbstractTableInfo tableInfo : sqlTree .getTableInfoMap ().values ()) {
272
272
@@ -304,26 +304,26 @@ public static Set<URL> registerTable(SqlTree sqlTree, StreamExecutionEnvironment
304
304
registerTableCache .put (tableInfo .getName (), regTable );
305
305
306
306
URL sourceTablePathUrl = PluginUtil .buildSourceAndSinkPathByLoadMode (tableInfo .getType (), AbstractSourceTableInfo .SOURCE_SUFFIX , localSqlPluginPath , remoteSqlPluginPath , pluginLoadMode );
307
- pluginClassPatshSets .add (sourceTablePathUrl );
307
+ pluginClassPathSets .add (sourceTablePathUrl );
308
308
} else if (tableInfo instanceof AbstractTargetTableInfo ) {
309
309
310
310
TableSink tableSink = StreamSinkFactory .getTableSink ((AbstractTargetTableInfo ) tableInfo , localSqlPluginPath );
311
311
TypeInformation [] flinkTypes = FunctionManager .transformTypes (tableInfo .getFieldClasses ());
312
312
tableEnv .registerTableSink (tableInfo .getName (), tableInfo .getFields (), flinkTypes , tableSink );
313
313
314
314
URL sinkTablePathUrl = PluginUtil .buildSourceAndSinkPathByLoadMode (tableInfo .getType (), AbstractTargetTableInfo .TARGET_SUFFIX , localSqlPluginPath , remoteSqlPluginPath , pluginLoadMode );
315
- pluginClassPatshSets .add (sinkTablePathUrl );
315
+ pluginClassPathSets .add (sinkTablePathUrl );
316
316
} else if (tableInfo instanceof AbstractSideTableInfo ) {
317
317
String sideOperator = ECacheType .ALL .name ().equals (((AbstractSideTableInfo ) tableInfo ).getCacheType ()) ? "all" : "async" ;
318
318
sideTableMap .put (tableInfo .getName (), (AbstractSideTableInfo ) tableInfo );
319
319
320
320
URL sideTablePathUrl = PluginUtil .buildSidePathByLoadMode (tableInfo .getType (), sideOperator , AbstractSideTableInfo .TARGET_SUFFIX , localSqlPluginPath , remoteSqlPluginPath , pluginLoadMode );
321
- pluginClassPatshSets .add (sideTablePathUrl );
321
+ pluginClassPathSets .add (sideTablePathUrl );
322
322
} else {
323
323
throw new RuntimeException ("not support table type:" + tableInfo .getType ());
324
324
}
325
325
}
326
- return pluginClassPatshSets ;
326
+ return pluginClassPathSets ;
327
327
}
328
328
329
329
/**
0 commit comments