Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigQuery: Page<Table>.iterateAll() iterator throws IllegalArgumentException #131

Closed
demaere-oiie opened this issue Jan 27, 2020 · 2 comments
Assignees
Labels
api: bigquery Issues related to the googleapis/java-bigquery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@demaere-oiie
Copy link

Environment details

  1. Specify the API at the beginning of the title. For example, "BigQuery: ...").
    General, Core, and Other are also allowed as types
  2. OS type and version: Linux (at customer site, version unknown)
  3. Java version: OpenJDK 8
  4. bigquery version(s): google-cloud-bigquery-1.102.0.jar

Steps to reproduce

  1. find a dataset containing Materialized Views
  2. attempt to iterate over the tables in the dataset

Code example

// example
Page<Table> tables = dataset.list(BigQuery.TableListOption.pageSize(100));
for (Table table : tables.iterateAll()) {
 ...
}

Stack trace

java.lang.IllegalArgumentException: Format MATERIALIZED_VIEW is not supported
        at com.google.cloud.bigquery.TableDefinition.fromPb(TableDefinition.java:159)
        at com.google.cloud.bigquery.TableInfo$BuilderImpl.<init>(TableInfo.java:188)
        at com.google.cloud.bigquery.Table.fromPb(Table.java:624)
        at com.google.cloud.bigquery.BigQueryImpl$21.apply(BigQueryImpl.java:842)
        at com.google.cloud.bigquery.BigQueryImpl$21.apply(BigQueryImpl.java:839)
        at com.google.common.collect.Iterators$6.transform(Iterators.java:783)
        at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:47)
        at com.google.cloud.PageImpl$PageIterator.computeNext(PageImpl.java:72)
        at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141)
        at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136)

External references such as API reference guides

Any additional information below

We understand Materialized Views are not in wide release, and are attempting to get them enabled for one of our projects so we can reproduce locally.

@demaere-oiie
Copy link
Author

@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Jan 28, 2020
@pmakani pmakani added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. and removed triage me I really want to be triaged. labels Jan 28, 2020
@pmakani pmakani self-assigned this Jan 28, 2020
@google-cloud-label-sync google-cloud-label-sync bot added the api: bigquery Issues related to the googleapis/java-bigquery API. label Jan 29, 2020
@stephaniewang526 stephaniewang526 self-assigned this Mar 23, 2020
@stephaniewang526
Copy link
Contributor

Hi,

We added MV support: #174

Please try it with the latest version of BigQuery and let us know if you face any other issues.

Thanks!

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 googleapis/java-bigquery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

4 participants