Skip to content

Commit 771b3c7

Browse files
authored
fix(csharp/src/Drivers/Apache): Fix setting foreign schema/table in GetCrossReference (#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"); ```
1 parent e869a55 commit 771b3c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

csharp/src/Drivers/Apache/Hive2/HiveServer2Connection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,11 +1139,11 @@ internal async Task<TGetCrossReferenceResp> GetCrossReferenceAsync(
11391139
{
11401140
req.ForeignCatalogName = foreignCatalogName!;
11411141
}
1142-
if (schemaName != null)
1142+
if (foreignSchemaName != null)
11431143
{
11441144
req.ForeignSchemaName = foreignSchemaName!;
11451145
}
1146-
if (tableName != null)
1146+
if (foreignTableName != null)
11471147
{
11481148
req.ForeignTableName = foreignTableName!;
11491149
}

0 commit comments

Comments
 (0)