Skip to content

Commit

Permalink
Set targets to netstandard2.0;net6.0
Browse files Browse the repository at this point in the history
Fix Query method on SpiceFlightClient.cs
  • Loading branch information
gloomweaver committed Jun 13, 2024
1 parent 5f9813f commit 2de564d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Spice/Spice.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>11.0</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Apache.Arrow" Version="16.1.0" />
<PackageReference Include="Apache.Arrow.Flight" Version="16.1.0" />
</ItemGroup>


</Project>
2 changes: 1 addition & 1 deletion Spice/src/Flight/SpiceFlightClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ internal IEnumerable<RecordBatch> Query(string sql)
if (endpoint == null) throw new Exception("Failed to get endpoint");

var stream = _flightClient.GetStream(endpoint.Ticket);
return stream.ResponseStream.ReadAllAsync().ToBlockingEnumerable();
return stream.ResponseStream.ToBlockingEnumerable();
}
}

0 comments on commit 2de564d

Please sign in to comment.