Sets whether to use logical types when extracting to AVRO format.
If destinationFormat is set to "AVRO", this flag indicates whether to
enable extracting applicable column types (such as TIMESTAMP) to their
corresponding AVRO logical types (timestamp-micros), instead of only
using their raw types (avro-long).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# BigQuery Client - Class ExtractJobConfiguration (1.34.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.34.0 (latest)](/php/docs/reference/cloud-bigquery/latest/ExtractJobConfiguration)\n- [1.33.1](/php/docs/reference/cloud-bigquery/1.33.1/ExtractJobConfiguration)\n- [1.32.0](/php/docs/reference/cloud-bigquery/1.32.0/ExtractJobConfiguration)\n- [1.31.1](/php/docs/reference/cloud-bigquery/1.31.1/ExtractJobConfiguration)\n- [1.30.3](/php/docs/reference/cloud-bigquery/1.30.3/ExtractJobConfiguration)\n- [1.29.0](/php/docs/reference/cloud-bigquery/1.29.0/ExtractJobConfiguration)\n- [1.28.3](/php/docs/reference/cloud-bigquery/1.28.3/ExtractJobConfiguration)\n- [1.27.0](/php/docs/reference/cloud-bigquery/1.27.0/ExtractJobConfiguration)\n- [1.26.1](/php/docs/reference/cloud-bigquery/1.26.1/ExtractJobConfiguration)\n- [1.25.1](/php/docs/reference/cloud-bigquery/1.25.1/ExtractJobConfiguration)\n- [1.24.2](/php/docs/reference/cloud-bigquery/1.24.2/ExtractJobConfiguration)\n- [1.23.10](/php/docs/reference/cloud-bigquery/1.23.10/ExtractJobConfiguration) \nReference documentation and code samples for the BigQuery Client class ExtractJobConfiguration.\n\nRepresents a configuration for an extract job. For more information on the\navailable settings please see the\n[Jobs configuration API documentation](https://cloud.google.com/bigquery/docs/reference/rest/v2/Job).\n\nExample: \n\n use Google\\Cloud\\BigQuery\\BigQueryClient;\n\n $bigQuery = new BigQueryClient();\n $table = $bigQuery-\u003edataset('my_dataset')\n -\u003etable('my_table');\n $extractJobConfig = $table-\u003eextract('gs://my_bucket/target.csv');\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BigQuery\n\nMethods\n-------\n\n### __construct\n\n### compression\n\nSets the compression type to use for exported files.\n\nNot applicable when extracting models.\n\nExample: \n\n $extractJobConfig-\u003ecompression('GZIP');\n\n### destinationFormat\n\nSets the exported file format. Tables with nested or repeated fields\ncannot be exported as CSV.\n\nExample: \n\n $extractJobConfig-\u003edestinationFormat('NEWLINE_DELIMITED_JSON');\n\n### destinationUris\n\nSets a list of fully-qualified Google Cloud Storage URIs where the\nextracted table should be written.\n\nExample: \n\n $extractJobConfig-\u003edestinationUris([\n 'gs://my_bucket/destination.csv'\n ]);\n\n### fieldDelimiter\n\nSets the delimiter to use between fields in the exported data.\n\nNot applicable when extracting models.\n\nExample: \n\n $extractJobConfig-\u003efieldDelimiter(',');\n\n### printHeader\n\nSets whether or not to print out a header row in the results.\n\nNot applicable when extracting models.\n\nExample: \n\n $extractJobConfig-\u003eprintHeader(false);\n\n### sourceTable\n\nSets a reference to the table being exported.\n\nCannot be used in the same job as\n[ExtractJobConfiguration::sourceModel()](/php/docs/reference/cloud-bigquery/latest/ExtractJobConfiguration#_Google_Cloud_BigQuery_ExtractJobConfiguration__sourceModel__).\n\nExample: \n\n $table = $bigQuery-\u003edataset('my_dataset')\n -\u003etable('my_table');\n $extractJobConfig-\u003esourceTable($table);\n\n### sourceModel\n\nSets a reference to the model being exported.\n\nCannot be used in the same job as\n[ExtractJobConfiguration::sourceTable()](/php/docs/reference/cloud-bigquery/latest/ExtractJobConfiguration#_Google_Cloud_BigQuery_ExtractJobConfiguration__sourceTable__).\n\nExample: \n\n $model = $bigQuery-\u003edataset('my_dataset')\n -\u003emodel('my_model');\n $extractJobConfig-\u003esourceModel($model);\n\n### useAvroLogicalTypes\n\nSets whether to use logical types when extracting to AVRO format.\n\nIf destinationFormat is set to \"AVRO\", this flag indicates whether to\nenable extracting applicable column types (such as TIMESTAMP) to their\ncorresponding AVRO logical types (timestamp-micros), instead of only\nusing their raw types (avro-long).\n\nNot applicable when extracting models.\n\nExample: \n\n $extractJobConfig-\u003euseAvroLogicalTypes(true);"]]