steven-matison commented on code in PR #7316:
URL: https://github.com/apache/nifi/pull/7316#discussion_r1211726531
##########
nifi-nar-bundles/nifi-gcp-bundle/nifi-gcp-processors/src/main/java/org/apache/nifi/processors/gcp/bigquery/PutBigQuery.java:
##########
@@ -203,20 +201,24 @@ public void onUnscheduled() {
public void onTrigger(ProcessContext context, ProcessSession session) {
WriteStream writeStream;
Descriptors.Descriptor protoDescriptor;
+
+ FlowFile flowFile = session.get();
+ if (flowFile == null) {
+ return;
+ }
+
+ final TableName tableName =
TableName.of(context.getProperty(PROJECT_ID).getValue(),
context.getProperty(DATASET).evaluateAttributeExpressions(flowFile).getValue(),
context.getProperty(TABLE_NAME).evaluateAttributeExpressions(flowFile).getValue());
Review Comment:
Done
##########
nifi-nar-bundles/nifi-gcp-bundle/nifi-gcp-processors/src/main/java/org/apache/nifi/processors/gcp/bigquery/PutBigQuery.java:
##########
@@ -203,20 +201,24 @@ public void onUnscheduled() {
public void onTrigger(ProcessContext context, ProcessSession session) {
WriteStream writeStream;
Descriptors.Descriptor protoDescriptor;
+
+ FlowFile flowFile = session.get();
+ if (flowFile == null) {
+ return;
+ }
+
+ final TableName tableName =
TableName.of(context.getProperty(PROJECT_ID).getValue(),
context.getProperty(DATASET).evaluateAttributeExpressions(flowFile).getValue(),
context.getProperty(TABLE_NAME).evaluateAttributeExpressions(flowFile).getValue());
Review Comment:
Done
--
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]