Skip to content

fix(csharp/src/Drivers/Apache): Fix setting foreign schema/table in GetCrossReference - #2765

Merged
CurtHagenlocher merged 1 commit into
apache:mainfrom
alexguo-db:alex-guo_data/alex-fix-getcrossreference
May 1, 2025
Merged

fix(csharp/src/Drivers/Apache): Fix setting foreign schema/table in GetCrossReference#2765
CurtHagenlocher merged 1 commit into
apache:mainfrom
alexguo-db:alex-guo_data/alex-fix-getcrossreference

Conversation

@alexguo-db

@alexguo-db alexguo-db commented May 1, 2025

Copy link
Copy Markdown
Contributor

Currently, calling GetCrossReference with just ForeignCatalogName, ForeignSchemaName, and ForeignTableName parameters fails because these parameters aren't properly set on the Thrift request.

This PR fixes the typo

Tested E2E locally and it works

          statement.SqlQuery = "getcrossreference";
          statement.SetOption(ApacheParameters.IsMetadataCommand, "true");
          statement.SetOption(ApacheParameters.ForeignCatalogName, "powerbi");
          statement.SetOption(ApacheParameters.ForeignSchemaName, "default");
          statement.SetOption(ApacheParameters.ForeignTableName, "nyc_taxi_tripdata");

@github-actions github-actions Bot added this to the ADBC Libraries 18 milestone May 1, 2025

@CurtHagenlocher CurtHagenlocher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@CurtHagenlocher
CurtHagenlocher merged commit 771b3c7 into apache:main May 1, 2025
colin-k-rogers pushed a commit to dbt-labs/arrow-adbc that referenced this pull request Jun 10, 2025
…etCrossReference (apache#2765)

Currently, calling GetCrossReference with just ForeignCatalogName,
ForeignSchemaName, and ForeignTableName parameters fails because these
parameters aren't properly set on the Thrift request.

This PR fixes the typo

Tested E2E locally and it works
```
          statement.SqlQuery = "getcrossreference";
          statement.SetOption(ApacheParameters.IsMetadataCommand, "true");
          statement.SetOption(ApacheParameters.ForeignCatalogName, "powerbi");
          statement.SetOption(ApacheParameters.ForeignSchemaName, "default");
          statement.SetOption(ApacheParameters.ForeignTableName, "nyc_taxi_tripdata");
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants