We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d97f64 commit 295092dCopy full SHA for 295092d
projects/vdk-plugins/vdk-trino/src/vdk/plugin/trino/trino_connection.py
@@ -196,7 +196,13 @@ def _get_lineage_data(self, query):
196
"ALTER operation not a RENAME TABLE operation. No lineage will be collected."
197
)
198
199
- elif statement.get_type() == "SELECT" or statement.get_type() == "INSERT":
+ elif (
200
+ statement.get_type() == "SELECT"
201
+ or statement.get_type() == "INSERT"
202
+ or (
203
+ statement.get_type() == "CREATE" and "select" in statement.value.lower()
204
+ )
205
+ ):
206
if lineage_utils.is_heartbeat_query(query):
207
return None
208
log.debug("Collecting lineage for SELECT/INSERT query ...")
0 commit comments