Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.google.api.services.bigquery.model.TableReference;
import com.google.cloud.bigquery.RangePartitioning;
import com.google.cloud.bigquery.StandardTableDefinition;
import com.google.cloud.bigquery.TableDefinition;
import com.google.cloud.bigquery.TableDefinition.Type;
import com.google.cloud.bigquery.TimePartitioning;
import com.google.cloud.hadoop.io.bigquery.AbstractBigQueryInputFormat;
Expand Down Expand Up @@ -146,7 +147,7 @@ private void processQuery(JobContext context) throws IOException, InterruptedExc
readTimeout);
Type type = Objects.requireNonNull(bigQueryTable).getDefinition().getType();
Boolean isPartitionFilterRequired = bigQueryTable.getRequirePartitionFilter();
StandardTableDefinition tableDefinition = Objects.requireNonNull(bigQueryTable).getDefinition();
TableDefinition tableDefinition = Objects.requireNonNull(bigQueryTable).getDefinition();

String query;
if (type == Type.VIEW || type == Type.MATERIALIZED_VIEW || type == Type.EXTERNAL) {
Expand All @@ -156,7 +157,7 @@ private void processQuery(JobContext context) throws IOException, InterruptedExc
query = generateQuery(partitionFromDate, partitionToDate, filter, datasetProjectId,
datasetId,
tableName, limit, orderBy,
isPartitionFilterRequired, tableDefinition);
isPartitionFilterRequired, (StandardTableDefinition) tableDefinition);
}

if (query != null) {
Expand Down
Loading