Akira Chang
04/11/2023, 9:55 AMSourceAsset
that connects to my BigQuery database. I see online that there is a lib that I can use to connect. But can I run query on my BigQuery tables with this library as well?Tim Castillo
04/11/2023, 2:47 PMAkira Chang
04/17/2023, 9:21 AMAkira Chang
04/17/2023, 1:59 PMbigquery_pandas_io_manager
to query as well? Because according to the doc, only bigquery_resource
covers the custom query.Akira Chang
04/17/2023, 2:56 PMdagster._core.errors.DagsterInvariantViolationError: Object <google.cloud.bigquery.table.RowIterator object at 0x7fdda86779dC> is not picklable. You are currently using the fs_io_manager and the multi_or_in_process_executor. You will need to use a different io manager to continue using this output. For example, you can use the mem_io_manager with the in_process_executor.
For more information on io managers, visit <https://docs.dagster.io/concepts/io-management/io-managers>
For more information on executors, vist <https://docs.dagster.io/deployment/executors#overview>
Tim Castillo
04/17/2023, 3:16 PMbigquery_resource
to execute a raw query against BQ
ā¢ Looks like it's because it gave back a RowIterator
object. I'm assuming that's a Python generator fn and not actual data, so you might want to either turn it into a dataframe with to_dataframe.Akira Chang
04/17/2023, 3:21 PMAkira Chang
04/17/2023, 3:26 PMDefinitions
in my _`__init__.py`_ file. For example if I want multiple pipelines to use this same BigQuery resource, how would I be able to use it globally among different pipelines, in different folders?Tim Castillo
04/17/2023, 3:27 PMDefinitions
object?Akira Chang
04/17/2023, 3:28 PMAkira Chang
04/17/2023, 3:29 PMTim Castillo
04/17/2023, 3:29 PMAkira Chang
04/17/2023, 3:33 PM-My_project
-Pipeline1 Folder
-Pipeline2 Folder
-Pipeline3 Folder
-__init__.py
Akira Chang
04/17/2023, 3:33 PMinit
file like this to use globally?Akira Chang
04/17/2023, 3:34 PMTim Castillo
04/17/2023, 3:38 PMDefinitions
object in the __init__
.py and load all your pipelines into that Definitions
object. For example, if they're assets, you can import the whole module and use load_assets_from_module
,Akira Chang
04/17/2023, 3:39 PM