Skip to content

Commit 03a0efe

Browse files
committed
chore: get it building
1 parent 588424a commit 03a0efe

12 files changed

Lines changed: 121 additions & 16 deletions

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "csharp/arrow-adbc"]
2+
path = csharp/arrow-adbc
3+
url = git@github.com:apache/arrow-adbc.git
File renamed without changes.

csharp/AdbcDrivers.bigquery.sln

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.4.33403.182
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Apache.Arrow.Adbc.Drivers.BigQuery", "src/Apache.Arrow.Adbc.Drivers.BigQuery.csproj", "{A748041C-EF9A-4E88-B6FB-9F2D6CB79170}"
6+
EndProject
7+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Apache.Arrow.Adbc.Tests.Drivers.BigQuery", "test/Apache.Arrow.Adbc.Tests.Drivers.BigQuery.csproj", "{EA43BB7C-BC00-4701-BDF4-367880C2495C}"
8+
EndProject
9+
Global
10+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
11+
Debug|Any CPU = Debug|Any CPU
12+
Release|Any CPU = Release|Any CPU
13+
EndGlobalSection
14+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15+
{A748041C-EF9A-4E88-B6FB-9F2D6CB79170}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{A748041C-EF9A-4E88-B6FB-9F2D6CB79170}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{A748041C-EF9A-4E88-B6FB-9F2D6CB79170}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{A748041C-EF9A-4E88-B6FB-9F2D6CB79170}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{EA43BB7C-BC00-4701-BDF4-367880C2495C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20+
{EA43BB7C-BC00-4701-BDF4-367880C2495C}.Debug|Any CPU.Build.0 = Debug|Any CPU
21+
{EA43BB7C-BC00-4701-BDF4-367880C2495C}.Release|Any CPU.ActiveCfg = Release|Any CPU
22+
{EA43BB7C-BC00-4701-BDF4-367880C2495C}.Release|Any CPU.Build.0 = Release|Any CPU
23+
EndGlobalSection
24+
GlobalSection(SolutionProperties) = preSolution
25+
HideSolutionNode = FALSE
26+
EndGlobalSection
27+
GlobalSection(ExtensibilityGlobals) = postSolution
28+
SolutionGuid = {4795CF16-0FDB-4BE0-9768-5CF31564DC03}
29+
EndGlobalSection
30+
EndGlobal

csharp/Directory.Build.props

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!--
2+
Copyright (c) 2025 ADBC Drivers Contributors
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
18+
<Project>
19+
20+
<!-- Common repo directories -->
21+
<PropertyGroup>
22+
<RepoRoot>$(MSBuildThisFileDirectory)../</RepoRoot>
23+
<CSharpDir>$(MSBuildThisFileDirectory)</CSharpDir>
24+
<BaseOutputPath>$(CSharpDir)/artifacts/$(MSBuildProjectName)</BaseOutputPath>
25+
</PropertyGroup>
26+
27+
<!-- AssemblyInfo properties -->
28+
<PropertyGroup>
29+
<Product>ADBC Driver for BigQuery</Product>
30+
<Copyright>Copyright 2025 ADBC Drivers Contributors</Copyright>
31+
<VersionPrefix>0.21.0</VersionPrefix>
32+
<VersionSuffix>SNAPSHOT</VersionSuffix>
33+
</PropertyGroup>
34+
35+
<PropertyGroup>
36+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
37+
<LangVersion>latest</LangVersion>
38+
<SignAssembly>true</SignAssembly>
39+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
40+
<Nullable>enable</Nullable>
41+
<ImplicitUsings>disable</ImplicitUsings>
42+
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
43+
</PropertyGroup>
44+
45+
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net8.0'))">
46+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
47+
</ItemGroup>
48+
49+
</Project>

csharp/arrow-adbc

Submodule arrow-adbc added at 11f92d0

csharp/src/Apache.Arrow.Adbc.Drivers.BigQuery.csproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netstandard2.0;net472;net8.0</TargetFrameworks>
3+
<TargetFrameworks Condition="'$(IsWindows)'=='true'">netstandard2.0;net472;net8.0</TargetFrameworks>
4+
<TargetFrameworks Condition="'$(TargetFrameworks)'==''">netstandard2.0;net8.0</TargetFrameworks>
45
<PackageReadmeFile>readme.md</PackageReadmeFile>
6+
<LangVersion>9.0</LangVersion>
7+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
58
</PropertyGroup>
69
<ItemGroup>
710
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="8.0.3" Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'" />
@@ -12,7 +15,7 @@
1215
<PackageReference Include="System.Text.Json" Version="8.0.5" />
1316
</ItemGroup>
1417
<ItemGroup>
15-
<ProjectReference Include="..\..\Apache.Arrow.Adbc\Apache.Arrow.Adbc.csproj" />
18+
<PackageReference Include="Apache.Arrow.Adbc" Version="0.20.0" />
1619
</ItemGroup>
1720
<ItemGroup>
1821
<Content Include="readme.md">
@@ -21,4 +24,7 @@
2124
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
2225
</Content>
2326
</ItemGroup>
27+
<ItemGroup>
28+
<Compile Remove="Extensions/IArrowArrayExtensions.cs" />
29+
</ItemGroup>
2430
</Project>

csharp/src/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
using System.Runtime.CompilerServices;
1818

19-
[assembly: InternalsVisibleTo("Apache.Arrow.Adbc.Tests.Drivers.BigQuery, PublicKey=0024000004800000940000000602000000240000525341310004000001000100e504183f6d470d6b67b6d19212be3e1f598f70c246a120194bc38130101d0c1853e4a0f2232cb12e37a7a90e707aabd38511dac4f25fcb0d691b2aa265900bf42de7f70468fc997551a40e1e0679b605aa2088a4a69e07c117e988f5b1738c570ee66997fba02485e7856a49eca5fd0706d09899b8312577cbb9034599fc92d4")]
19+
[assembly: InternalsVisibleTo("Apache.Arrow.Adbc.Tests.Drivers.BigQuery")]

csharp/src/Extensions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../arrow-adbc/csharp/src/Apache.Arrow.Adbc/Extensions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../arrow-adbc/csharp/test/Apache.Arrow.Adbc.Tests

csharp/test/Apache.Arrow.Adbc.Tests.Drivers.BigQuery.csproj

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
</PackageReference>
1515
<PackageReference Include="Xunit.SkippableFact" Version="1.5.23" />
16+
<PackageReference Include="Moq" Version="4.20.72" />
17+
<PackageReference Include="OpenTelemetry" Version="1.8.1" />
18+
<PackageReference Include="OpenTelemetry.Exporter.InMemory" Version="1.8.1" />
19+
1620
</ItemGroup>
1721
<ItemGroup>
18-
<ProjectReference Include="..\..\..\src\Apache.Arrow.Adbc\Apache.Arrow.Adbc.csproj" />
19-
<ProjectReference Include="..\..\..\src\Client\Apache.Arrow.Adbc.Client.csproj" />
20-
<ProjectReference Include="..\..\..\src\Drivers\BigQuery\Apache.Arrow.Adbc.Drivers.BigQuery.csproj" />
21-
<ProjectReference Include="..\..\Apache.Arrow.Adbc.Tests\Apache.Arrow.Adbc.Tests.csproj" />
22+
<PackageReference Include="Apache.Arrow.Adbc" Version="0.20.0" />
23+
<PackageReference Include="Apache.Arrow.Adbc.Client" Version="0.20.0" />
24+
<ProjectReference Include="..\src\Apache.Arrow.Adbc.Drivers.BigQuery.csproj" />
2225
</ItemGroup>
2326
<ItemGroup>
2427
<None Update="Resources\BigQueryData.sql">
@@ -28,4 +31,12 @@
2831
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
2932
</None>
3033
</ItemGroup>
34+
<ItemGroup>
35+
<Compile Remove="Apache.Arrow.Adbc.Tests\IArrowArrayExtensionsTests.cs" />
36+
<Compile Remove="Apache.Arrow.Adbc.Tests\Client\*.cs" />
37+
<Compile Remove="Apache.Arrow.Adbc.Tests\ClientTests.cs" />
38+
<Compile Remove="Apache.Arrow.Adbc.Tests\DuckDbFixture.cs" />
39+
<Compile Remove="Apache.Arrow.Adbc.Tests\ImportedDuckDbTests.cs" />
40+
<Compile Remove="ClientTests.cs" />
41+
</ItemGroup>
3142
</Project>

0 commit comments

Comments
 (0)