forked from guypeled76/go-bigquery-driver
-
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Your Question
I'm having an odd issue using GORM with BigQuery. I've pared things down to a very, very simple .Find, and unmarshalling into a struct:
q.Table("Tags").
Select("ROW_NUMBER() OVER() id, *").
Find(&tags)My Tags struct looks like:
type Tag struct {
ID int `json:"id" gorm:"column:id"`
Phase string `json:"phase" gorm:"column:phase"`
}Logs show it got results from the DB:
[4734.504ms] [rows:10] SELECT ROW_NUMBER() OVER() id, * FROM `Tags` LIMIT 10
And my tags array has 10 entries, but all fields in the structs have zero values. I have no problem using the native BigQuery client, but I need to use GORM on this project since we have some filtering layer for an API built on top of it.
Any idea what's wrong?
The document you expected this should be explained
gorm bigquery driver docs
Expected answer
What I'm doing wrong
Metadata
Metadata
Assignees
Labels
No labels