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 - Can't sync materialized views since 1.49.0 #42008

Closed
FilmonK opened this issue Apr 29, 2024 · 2 comments · Fixed by #42092
Closed

BigQuery - Can't sync materialized views since 1.49.0 #42008

FilmonK opened this issue Apr 29, 2024 · 2 comments · Fixed by #42092
Assignees
Labels
Administration/Metadata & Sync Database/BigQuery Priority:P1 Security holes w/o exploit, crashing, setup/upgrade, login, broken common features, correctness .Regression Bugs that were previously fixed and/or bugs unintentionally shipped with new features. .Team/BackendComponents also known as BEC Type:Bug Product defects
Milestone

Comments

@FilmonK
Copy link

FilmonK commented Apr 29, 2024

Describe the bug

Testing in 1.49.7.
Not able to successfully sync Materialized Views in BigQuery and run into the following error:

java.lang.ClassCastException: class com.google.cloud.bigquery.AutoValue_MaterializedViewDefinition cannot be cast to class com.google.cloud.bigquery.StandardTableDefinition (com.google.cloud.bigquery.AutoValue_MaterializedViewDefinition and com.google.cloud.bigquery.StandardTableDefinition are in unnamed module of loader clojure.lang.DynamicClassLoader @4f5d587c)


Metadata for the materialized view within Admin Settings will not be brought in.
Attempting to query or browse the data will give a "no fields found" message.

Screenshot 2024-04-29 at 5 51 25 PM

Tested syncing on 1.49.0 and encounter the same issue.
Syncing functions correctly 1.48.7.

To Reproduce

  1. Create materialized view in BigQuery
  2. Sync database

It doesn't matter whether this is an update to an existing materialized view, or a newly created one.

Expected behavior

For the sync to function as it did prior to 1.49.0.

Logs

No response

Information about your Metabase installation

{
  "browser-info": {
    "language": "en-US",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
    "vendor": "Google Inc."
  },
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.22+7",
    "java.vendor": "Eclipse Adoptium",
    "java.vendor.url": "https://adoptium.net/",
    "java.version": "11.0.22",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.22+7",
    "os.name": "Mac OS X",
    "os.version": "13.5.1",
    "user.language": "en",
    "user.timezone": "America/Chicago"
  },
  "metabase-info": {
    "databases": [
      "postgres",
      "mongo",
      "bigquery-cloud-sdk",
      "mysql",
      "h2"
    ],
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "15.3"
      },
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.7.2"
      }
    },
    "run-mode": "prod",
    "version": {
      "date": "2024-04-22",
      "tag": "v1.49.7",
      "hash": "f0ff786"
    },
    "settings": {
      "report-timezone": "UTC"
    }
  }
}

Severity

P1 - Not able to sync Materialized Views or query them

Additional context

No response

@FilmonK FilmonK added Type:Bug Product defects .Needs Triage Priority:P2 Average run of the mill bug Administration/Metadata & Sync Database/BigQuery Priority:P1 Security holes w/o exploit, crashing, setup/upgrade, login, broken common features, correctness and removed Priority:P2 Average run of the mill bug .Needs Triage labels Apr 29, 2024
@calherries calherries added the .Team/BackendComponents also known as BEC label May 1, 2024
@qnkhuat qnkhuat self-assigned this May 1, 2024
@darksciencebase darksciencebase added the .Regression Bugs that were previously fixed and/or bugs unintentionally shipped with new features. label May 2, 2024
@Mjoubrel
Copy link

Mjoubrel commented May 7, 2024 via email

@qnkhuat
Copy link
Contributor

qnkhuat commented May 8, 2024

The fix will be included in 49.9. but it hasn't been released, so I don't have an exact date for you. If you're on the cloud, please email us so our success engineer can support you.

@qnkhuat qnkhuat added this to the 0.49.9 milestone May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Administration/Metadata & Sync Database/BigQuery Priority:P1 Security holes w/o exploit, crashing, setup/upgrade, login, broken common features, correctness .Regression Bugs that were previously fixed and/or bugs unintentionally shipped with new features. .Team/BackendComponents also known as BEC Type:Bug Product defects
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants