Skip to content

🐛 [firestore-bigquery-export] Table not partitioned despite using default _PARTITIONTIME pseudo column #2196

@ytetsuro

Description

@ytetsuro

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs for a specific extension in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • To file a bug against the Firebase Extensions platform, or for an issue affecting multiple extensions, please reach out to
    Firebase support directly.

[REQUIRED] Step 2: Describe your configuration

  • Extension name: firestore-bigquery-export
  • Extension version: 0.1.55
  • Configuration values (redact info where appropriate):
    • BigQuery SQL table Time Partitioning option type: HOUR
    • BigQuery Time Partitioning column name: NONE
    • Firestore Document field name for BigQuery SQL Time Partitioning field option: NONE
    • BigQuery SQL Time Partitioning table schema field(column) type: omit

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

install the firestore extension with the above settings.
Maybe the following code is the problem.

https://github.com/firebase/extensions/blob/next/firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/partitioning.ts#L97

Expected result

An unpartitioned table is generated.

Actual result

A table with _PARTITIONTIME pseudo column is generated.

Because the BigQuery Time Partitioning column name has the following description

BigQuery table column/schema field name for TimePartitioning. You can choose schema available as timestamp OR a new custom defined column that will be assigned to the selected Firestore Document field below. Defaults to pseudo column _PARTITIONTIME if unspecified. Cannot be changed if Table is already partitioned.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions