Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ class BigQueryViewGenerator(
select(DSL.field("userGroup"))
.from(DSL.table(renderName(userGroupsTable!!)))
.where(
DSL.field("userEmail")
.eq(DSL.function("SESSION_USER", Boolean::class.java))
DSL.field("lower(userEmail)")
.eq(DSL.lower(DSL.function("SESSION_USER", String::class.java)))
)
)
return jooq.with(userGroupSelect).select(fields)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ with
user_groups as (
select userGroup
from `my_project.my_dataset.my_user_groups`
where userEmail = SESSION_USER()
where lower(userEmail) = lower(SESSION_USER())
)
select
`transactionId`,
Expand Down Expand Up @@ -232,7 +232,7 @@ with
user_groups as (
select userGroup
from `my_project.my_dataset.my_user_groups`
where userEmail = SESSION_USER()
where lower(userEmail) = lower(SESSION_USER())
)
select
case
Expand Down Expand Up @@ -270,7 +270,7 @@ with
user_groups as (
select userGroup
from `my_project.my_dataset.my_user_groups`
where userEmail = SESSION_USER()
where lower(userEmail) = lower(SESSION_USER())
)
select
case
Expand Down