Skip to content

Commit

Permalink
fixed check for the ssl error
Browse files Browse the repository at this point in the history
  • Loading branch information
hafenkran committed Nov 17, 2024
1 parent 06ca23e commit 5e62c8e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/bigquery_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,12 @@
#include "duckdb.hpp"
#include "duckdb/parser/column_list.hpp"
#include "duckdb/parser/constraint.hpp"
#include "duckdb/parser/expression/comparison_expression.hpp"
#include "duckdb/parser/expression/constant_expression.hpp"
#include "duckdb/parser/expression/function_expression.hpp"
#include "duckdb/parser/expression/parameter_expression.hpp"
#include "duckdb/parser/parsed_data/create_schema_info.hpp"
#include "duckdb/parser/parsed_data/create_table_info.hpp"
#include "duckdb/parser/parsed_data/create_view_info.hpp"
#include "duckdb/parser/parsed_data/drop_info.hpp"
#include "duckdb/parser/parsed_expression.hpp"
#include "duckdb/parser/parser.hpp"
#include "duckdb/parser/transformer.hpp"


#include "google/cloud/bigquery/storage/v1/arrow.pb.h"
#include "google/cloud/bigquery/storage/v1/bigquery_read_client.h"
Expand Down Expand Up @@ -127,7 +121,6 @@ google::cloud::Options BigqueryClient::OptionsGRPC() {
}

vector<BigqueryDatasetRef> BigqueryClient::GetDatasets() {
std::cout << "BigqueryClient::GetDatasets" << std::endl;
auto request = google::cloud::bigquery::v2::ListDatasetsRequest();
request.set_project_id(config.project_id);

Expand Down
2 changes: 1 addition & 1 deletion src/include/bigquery_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class BigqueryClient {

bool CheckSSLError(const google::cloud::Status &status) {
if (status.message().find("Problem with the SSL CA cert") != std::string::npos) {
if (!uses_custom_ca_bundle_path && !BigquerySettings::CurlCaBundlePath().empty()) {
if (!uses_custom_ca_bundle_path && BigquerySettings::CurlCaBundlePath().empty()) {
uses_custom_ca_bundle_path = true;
BigquerySettings::TryDetectCurlCaBundlePath();
return true;
Expand Down

0 comments on commit 5e62c8e

Please sign in to comment.