@@ -107,14 +107,12 @@ namespace NYql {
107107 NYql::TGenericClusterConfig& clusterConfig) {
108108 auto it = properties.find (" database_name" );
109109 if (it == properties.cend ()) {
110- // TODO: make this property required during https://st.yandex-team.ru/YQ-2494
111- // ythrow yexception() << "missing 'DATABASE_NAME' value";
110+ ythrow yexception () << " missing 'DATABASE_NAME' value" ;
112111 return ;
113112 }
114113
115114 if (!it->second ) {
116- // TODO: make this property required during https://st.yandex-team.ru/YQ-2494
117- // ythrow yexception() << "invalid 'DATABASE_NAME' value: '" << it->second << "'";
115+ ythrow yexception () << " invalid 'DATABASE_NAME' value: '" << it->second << " '" ;
118116 return ;
119117 }
120118
@@ -125,14 +123,12 @@ namespace NYql {
125123 NYql::TGenericClusterConfig& clusterConfig) {
126124 auto it = properties.find (" schema" );
127125 if (it == properties.cend ()) {
128- // TODO: make this property required during https://st.yandex-team.ru/YQ-2494
129- // ythrow yexception() << "missing 'SCHEMA' value";
126+ // SCHEMA is optional field
130127 return ;
131128 }
132129
133130 if (!it->second ) {
134- // TODO: make this property required during https://st.yandex-team.ru/YQ-2494
135- // ythrow yexception() << "invalid 'SCHEMA' value: '" << it->second << "'";
131+ // SCHEMA is optional field
136132 return ;
137133 }
138134
@@ -333,9 +329,12 @@ namespace NYql {
333329 }
334330
335331 static const TSet<NConnector::NApi::EDataSourceKind> managedDatabaseKinds{
336- NConnector::NApi::EDataSourceKind::POSTGRESQL,
337332 NConnector::NApi::EDataSourceKind::CLICKHOUSE,
338- NConnector::NApi::EDataSourceKind::YDB};
333+ NConnector::NApi::EDataSourceKind::GREENPLUM,
334+ NConnector::NApi::EDataSourceKind::MYSQL,
335+ NConnector::NApi::EDataSourceKind::POSTGRESQL,
336+ NConnector::NApi::EDataSourceKind::YDB,
337+ };
339338
340339 void ValidateGenericClusterConfig (
341340 const NYql::TGenericClusterConfig& clusterConfig,
0 commit comments