adelapena commented on code in PR #2156:
URL: https://github.com/apache/cassandra/pull/2156#discussion_r1138587900
##########
src/java/org/apache/cassandra/cql3/statements/schema/DropFunctionStatement.java:
##########
@@ -120,9 +121,28 @@ public Keyspaces apply(Keyspaces schema)
if (!dependentAggregates.isEmpty())
throw ire("Function '%s' is still referenced by aggregates %s",
name, dependentAggregates);
+ String dependentMasks = keyspace.tables.stream()
+ .filter(table ->
hasDependingMask(table, function))
+ .map(table -> table.name)
+ .collect(joining(", "));
Review Comment:
I have just tried to do that with two new
`KeyspaceMetadata#tablesUsingFunction(Function)` and
`TableMetadata#dependsOn(Function)` methods.
--
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]