Skip to content

Commit

Permalink
grpc: rename grpc_dest_option to grpc_dest_general option
Browse files Browse the repository at this point in the history
We are planning to introduce an opt-in grpc_dest_schema_option
nonterminal.

Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
  • Loading branch information
alltilla committed Oct 12, 2024
1 parent 0c71f64 commit a15a2e0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/grpc/bigquery/bigquery-grammar.ym
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ bigquery_dest_option
: KW_PROJECT '(' string ')' { bigquery_dd_set_project(last_driver, $3); free($3); }
| KW_DATASET '(' string ')' { bigquery_dd_set_dataset(last_driver, $3); free($3); }
| KW_TABLE '(' string ')' { bigquery_dd_set_table(last_driver, $3); free($3); }
| grpc_dest_general_option
| KW_SCHEMA '(' bigquery_schema_fields ')'
| KW_PROTOBUF_SCHEMA '(' path_check LL_ARROW template_content_list ')'
{
bigquery_dd_set_protobuf_schema(last_driver, $3, $5);
free($3);
}
| grpc_dest_option
;

bigquery_schema_fields
Expand Down
2 changes: 1 addition & 1 deletion modules/grpc/common/grpc-grammar.ym
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ grpc_source_channel_arg
| string LL_ARROW string { grpc_sd_add_string_channel_arg(last_driver, $1, $3); free($1); free($3); }
;

grpc_dest_option
grpc_dest_general_option
: KW_URL '(' string ')' { grpc_dd_set_url(last_driver, $3); free($3); }
| KW_AUTH { last_grpc_client_credentials_builder = grpc_dd_get_credentials_builder(last_driver); } '(' grpc_client_credentials_option ')'
| KW_COMPRESSION '(' yesno ')' { grpc_dd_set_compression(last_driver, $3); }
Expand Down
2 changes: 1 addition & 1 deletion modules/grpc/loki/loki-grammar.ym
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ loki_dest_option
free($3);
}
| KW_TEMPLATE '(' template_name_or_content ')' { loki_dd_set_message_template_ref(last_driver, $3); }
| grpc_dest_option
| grpc_dest_general_option
;

loki_labels
Expand Down
2 changes: 1 addition & 1 deletion modules/grpc/otel/otel-grammar.ym
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ destination_otel_options
;

destination_otel_option
: grpc_dest_option
: grpc_dest_general_option
;

destination_syslog_ng_otlp
Expand Down

0 comments on commit a15a2e0

Please sign in to comment.