0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Lookerで1つのModelから複数のリソースにクエリを投げる方法

Posted at

"簡単だけど通常の使い方と違う"というハードル

  • Googleで調べにくい
  • Lookerの人に聞いても、「できますよ」という回答が返ってくる

前提

  • Lookerからの接続先はBigQueryを想定

やり方

  • LookerのサービスアカウントにBigQuery側の権限を与える
    • もちろんクエリを投げたい複数のリソースへのアクセス権限が必要
  • Modelで指定するConnectionはなんでも良い
    • ModelにConnection側の権限はちゃんと与えてあげることを忘れずに
  • viewで指定するテーブル名は、ちゃんとリソース名から書く
    • 省略すると、Modelで指定したConnection名が接頭句として追加される ≒ 別のリソースにあるデータセット/テーブルの指定がうまくいかない
    • ここがわかりづらい

疑問/不安

  • 通常の使い方だと1コネクション1リソースを前提としてるけど、それを乗り越えてしまうとどんなデメリットがあるのか把握しきれていない
    • 多分権限周りなんだろうけど…
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?