Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit c57a30e

Browse files
committed
fix: regex
1 parent cbbff09 commit c57a30e

6 files changed

Lines changed: 12 additions & 8 deletions

File tree

pandas_gbq/core/biglake.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
import dataclasses
1515
from typing import Sequence
1616

17-
import google.auth.transport.requests
1817
import google.cloud.bigquery
19-
import google.oauth2.credentials
2018

2119
import pandas_gbq.core.resource_references
2220

pandas_gbq/core/resource_references.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@
1111
# name. Such projects still exist, especially at Google.
1212
r"^(?P<legacy_project_domain>[^:]+:)?"
1313
r"(?P<project>[^.]+)\."
14-
# Dataset for native BigQuery tables, catalog + namespace(s) for BigLake.
15-
r"(?P<inner_parts>([^.\s]+\.?)+)\."
14+
# Match dataset or catalog + namespace.
15+
#
16+
# Namespace could be arbitrarily deeply nested in Iceberg/BigLake. Support
17+
# this without catastrophic backtracking by moving the trailing "." to the
18+
# table group.
19+
r"(?P<inner_parts>.*)"
1620
# Table names can't contain ".", as that's used as the separator.
17-
r"(?P<table>[^.]+)$"
21+
r"\.(?P<table>[^.]+)$"
1822
)
1923

2024

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
# allow pandas-gbq to detect invalid package versions at runtime.
4141
"google-cloud-bigquery >=3.20.0,<4.0.0",
4242
"packaging >=22.0.0",
43-
"requests >= 2.20.0, < 3.0.0",
4443
]
4544
extras = {
4645
"bqstorage": [

testing/constraints-3.9.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ google-auth==2.14.1
1616
google-auth-oauthlib==0.7.0
1717
google-cloud-bigquery==3.20.0
1818
packaging==22.0.0
19-
requests==2.20.0
2019
# Extras
2120
google-cloud-bigquery-storage==2.16.2
2221
tqdm==4.23.0
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2026 pandas-gbq Authors All rights reserved.
2+
# Use of this source code is governed by a BSD-style
3+
# license that can be found in the LICENSE file.
4+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2025 pandas-gbq Authors All rights reserved.
1+
# Copyright (c) 2026 pandas-gbq Authors All rights reserved.
22
# Use of this source code is governed by a BSD-style
33
# license that can be found in the LICENSE file.
44

0 commit comments

Comments
 (0)