Skip to content

Conversation

@wendigo
Copy link
Contributor

@wendigo wendigo commented Jan 23, 2025

Description

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Jan 23, 2025
@wendigo wendigo requested review from ebyhr and losipiuk January 23, 2025 10:59
@github-actions github-actions bot added the bigquery BigQuery connector label Jan 23, 2025
@wendigo wendigo force-pushed the serafin/bq-allocations branch from ae701dd to 9b61f00 Compare January 23, 2025 11:53
@wendigo wendigo force-pushed the serafin/bq-allocations branch from 83f1ec0 to f0afdf2 Compare January 23, 2025 13:47
@wendigo wendigo merged commit 30def9d into master Jan 23, 2025
18 checks passed
@wendigo wendigo deleted the serafin/bq-allocations branch January 23, 2025 14:49
@github-actions github-actions bot added this to the 469 milestone Jan 23, 2025
}

@ConfigDescription("Maximum memory allocation allowed for Arrow library")
@Config("bigquery.arrow-serialization.max-allocation")
Copy link
Member

Choose a reason for hiding this comment

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

Dont we want to document this @wendigo ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can but it's not obligatory.

Copy link
Member

Choose a reason for hiding this comment

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

Seems too deep in the weeds .. lets leave it out until we find someone actually uses this for some benefit

@Inject
public BigQueryArrowBufferAllocator(BigQueryArrowConfig config, BigQueryArrowAllocatorStats stats)
{
this.maximumAllocation = requireNonNull(config, "config is null").getMaxAllocation().toBytes();
Copy link
Member

Choose a reason for hiding this comment

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

We avoid using requireNonNull for config classes. #13940

import static io.airlift.configuration.testing.ConfigAssertions.recordDefaults;
import static io.airlift.units.DataSize.Unit.GIGABYTE;

class TestBigQueryArrowConfig
Copy link
Member

Choose a reason for hiding this comment

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

https://trino.io/docs/current/develop/tests.html#conventions-and-recommendations

Test classes should be defined as package-private and final.

class TestBigQueryArrowConfig
{
@Test
public void testDefaults()
Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bigquery BigQuery connector cla-signed

Development

Successfully merging this pull request may close these issues.

4 participants