Skip to content

Conversation

@cy-yun
Copy link
Contributor

@cy-yun cy-yun commented Sep 17, 2025

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the BigQuery API. label Sep 17, 2025
@amanda-tarafa amanda-tarafa self-requested a review September 18, 2025 17:41
@cy-yun cy-yun force-pushed the normalize_descriptor branch 4 times, most recently from 0ed9746 to 96592ec Compare September 18, 2025 22:09
…oBqSchema, NormalizeDescriptor, StorageSchemaToProtoDescriptor
Copy link
Contributor

@amanda-tarafa amanda-tarafa left a comment

Choose a reason for hiding this comment

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

Some notes and change requests, but I haven't reviewed the code yet.

<PackageReference Include="ConfigureAwaitChecker.Analyzer" PrivateAssets="All" />
<PackageReference Include="Google.Api.Gax.Grpc" />
<PackageReference Include="Grpc.Core" PrivateAssets="None" Condition="'$(TargetFramework)'=='net462'" />
<PackageReference Include="Google.Apis.Bigquery.v2" VersionOverride="[1.69.0.3783, 2.0.0.0)" />
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure about this. We avoid library cross dependencies. I wonder if it makes more sense to create a separate helper package for this.

I'll review the code as that may be the same regardless of on which package it goes to.

@jskeet @shollyman , thoughts appreciated.

<PackageVersion Include="NLog" Version="5.5.1" />
<PackageVersion Include="Grpc.AspNetCore" Version="2.40.0" />
<PackageVersion Include="Microsoft.AspNetCore.Server.Kestrel.Core" Version="2.3.0" />
<PackageVersion Include="Grpc.Tools" Version="2.61.0" />
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this dependency is actually being used.

<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="Google.Protobuf" />
<PackageReference Include="Grpc.Tools" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" PrivateAssets="all" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Even though is here, I don't see this dependency being used anywhere.

namespace Google.Cloud.BigQuery.Storage.V1.IntegrationTests
{
[CollectionDefinition(nameof(BigQueryStorageFixture))]
public class BigQueryStorageFixture : CloudProjectFixtureBase, ICollectionFixture<BigQueryStorageFixture>
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need a fixture if it does nothing.


namespace Google.Cloud.BigQuery.Storage.V1.IntegrationTests
{
public class SchemaAdapterUnitTests
Copy link
Contributor

Choose a reason for hiding this comment

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

We have separate projects for unit and integration tests. And files are not suffixed with "UnitTests" and "IntegrationTests".

using System.Linq;
using System.Text.RegularExpressions;

namespace Google.Cloud.BigQuery.Storage.V1
Copy link
Contributor

Choose a reason for hiding this comment

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

For new files we use filed-scopes namespaces. Change here and everywhere.


namespace Google.Cloud.BigQuery.Storage.V1
{
public static partial class SchemaAdapter
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this class partial?

@amanda-tarafa amanda-tarafa changed the title feat(BigQuery): Add BqSchemaToStorageTableSchema, StorageTableSchemaToBqSchema, NormalizeDescriptor, StorageSchemaToProtoDescriptor feat(BigQuery): Improve prtobuf support Oct 3, 2025
@amanda-tarafa
Copy link
Contributor

We are going to take some more time looking into this. We'll keep the PR in draft for now.

@amanda-tarafa amanda-tarafa added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API. do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants