DanielLeens commented on code in PR #12232:
URL: https://github.com/apache/seatunnel/pull/12232#discussion_r3975055353


##########
seatunnel-connectors-v2/connector-firebase/src/main/java/org/apache/seatunnel/connectors/seatunnel/firebase/sink/FirebaseSink.java:
##########
@@ -15,45 +15,34 @@
  * limitations under the License.
  */
 
-package org.apache.seatunnel.connectors.seatunnel.snmp.sink;
+package org.apache.seatunnel.connectors.seatunnel.firebase.sink;
 
+import org.apache.seatunnel.api.configuration.ReadonlyConfig;
 import org.apache.seatunnel.api.sink.SinkWriter;
 import org.apache.seatunnel.api.table.catalog.CatalogTable;
 import org.apache.seatunnel.api.table.type.SeaTunnelRow;
-import org.apache.seatunnel.api.table.type.SeaTunnelRowType;
 import 
org.apache.seatunnel.connectors.seatunnel.common.sink.AbstractSimpleSink;
 import 
org.apache.seatunnel.connectors.seatunnel.common.sink.AbstractSinkWriter;
-import org.apache.seatunnel.connectors.seatunnel.snmp.config.SnmpSinkConfig;
-import org.apache.seatunnel.connectors.seatunnel.snmp.config.SnmpSinkOptions;
 
-import java.util.Optional;
+import java.io.IOException;
 
-/** SeaTunnel sink that applies input rows through SNMPv2c SET requests. */
-public final class SnmpSink extends AbstractSimpleSink<SeaTunnelRow, Void> {
-
-    private final SnmpSinkConfig config;
+public class FirebaseSink extends AbstractSimpleSink<SeaTunnelRow, Void> {

Review Comment:
   Agreed, this is a valid gap — I checked it against 
`SeaTunnelSink.getWriteCatalogTable()` (default `Optional.empty()`) and its 
call sites in `SinkFlowLifeCycle.java:208` / `:750`: without an override, 
`FirebaseSink` reports `TablePath.DEFAULT` for metrics/stain-trace table 
attribution instead of the real Firebase path, even though the class already 
holds a `catalogTable` field. `GraphQLSink` (a very similar REST-based sink) is 
the right precedent here — it overrides `getWriteCatalogTable()` returning 
`Optional.ofNullable(catalogTable)`. This is a metrics/observability gap rather 
than a data-correctness one, so it doesn't change the severity of the 
checkpoint-flush issue I raised separately, but it should be fixed alongside it 
before merge.
   



-- 
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]

Reply via email to