https://meltano.com/ logo
#announcements
Title
# announcements
r

rapid-twilight-35747

03/24/2021, 3:59 PM
Hello! I'm looking for an example of how to partition a bigquery loader. Over the loader-bigquery repo I see there is a
target-tables-config.json
file but I don't know how/where to set it up. Any help is appreciated 🙂
g

great-gold-98639

03/24/2021, 4:34 PM
Interesting, I wasn't aware the BQ target had partitioning support. We create the tables first, then have meltano load into it. https://github.com/adswerve/target-bigquery#setting-up-partitioning-and-clustering Not sure if meltano supports passing tap/target specific cli arguments like the
-t
option
r

ripe-musician-59933

03/24/2021, 5:42 PM
Not sure if meltano supports passing tap/target specific cli arguments like the 
-t
  option
This is not currently supported, no. I think it would be more appropriate for the target to take this
target-tables-config
as part of its regular
--config
file. I expect that they would accept a contribution to add support for that
thankyou 1
r

rapid-twilight-35747

03/24/2021, 8:26 PM
@great-gold-98639 when I tried to create a partitioned and then use meltano to load data, I got the error that it is not possible to merge an unpartitioned table (meltano-created) to a partitioned table (the one I created). How did you solve that?
g

great-gold-98639

03/30/2021, 7:11 PM
I was wrong, @rapid-twilight-35747, seeing that error now.
I opened a PR based on Douwe's recommendation. Note that the latest version of adswerve's target didn't seem to work for me due to this commit. I'll have to inspect more before trying to use it with meltano.
🙌 1
r

ripe-musician-59933

03/30/2021, 11:29 PM
@great-gold-98639 I had been thinking we could add a
tables
or
streams
dictionary right inside
config.json
, so that a separate file wouldn't be necessary anymore. Do you prefer using a separate file?
g

great-gold-98639

03/30/2021, 11:55 PM
Good idea, I would rather have that as well. I just figured it's a slightly smaller change to still point to a file like the command line argument. I'll propose passing a dictionary instead.