giftig commented on code in PR #23852:
URL: https://github.com/apache/superset/pull/23852#discussion_r1184648122


##########
superset/sql_validators/trino.py:
##########
@@ -0,0 +1,31 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+from typing import Type
+
+from superset.sql_validators.presto_db import PrestoDBSQLValidator

Review Comment:
   We've been using this in our fork for the past year or so I believe, just to 
give us some sort of validation for trino queries. It's true I've occasionally 
seen some errors logged e.g. a missing `poll` attribute on `Cursor` which 
suggests they're not fully compatible here, and have to fudge the error type 
does flag the issue. We've found that it's better than nothing, but perhaps not 
reliable enough to be a useful contribution.
   
   We're likely to go the route of highly customised validation errors and 
warnings on the validator if we do write a more comprehensive version, but if 
we take inspiration from what the presto and postgres validators are looking 
for maybe we can build that in such a way to be able to contribute something 
useful here and add anything more custom on top.
   
   That said it sounds like trino isn't a big priority in this project  at the 
moment, and the SQL validators aren't a big focus either, given there have only 
ever been two of them. Hopefully we can contribute something more useful here 
once we've iterated it a bit, though.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to