Skip to content

BigQuery query configuration? #1045

Answered by kaxil
judoole asked this question in Q&A
Oct 11, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hey @judoole ,

For loading file from a source to Bigquery, you can pass the configs that are available at https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#JobConfigurationLoad

For example:

    aql.load_file(
        input_file=File("gs://astro-sdk/workspace/sample_pattern", conn_id="bigquery", filetype=FileType.CSV),
        output_table=Table(conn_id="bigquery", metadata=Metadata(schema="astro")),
        native_support_kwargs={
            "ignore_unknown_values": True,
            "allow_jagged_rows": True,
            "skip_leading_rows": "1",
        },
        use_native_support=True,
        enable_native_fallback=False,
    )

But I don't think we currently support addi…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@judoole
Comment options

@kaxil
Comment options

Answer selected by judoole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants