Could not handle BIGNUMERICs while reading
See original GitHub issueWe are unable to read from bigquery getting below exception while reading BIGNUMERIC data types:
Exception in thread "main" java.lang.IllegalStateException: Unexpected type: BIGNUMERIC
at com.google.cloud.spark.bigquery.SchemaConverters.getStandardDataType(SchemaConverters.java:234)
at com.google.cloud.spark.bigquery.SchemaConverters.lambda$getDataType$4(SchemaConverters.java:184)
at java.util.Optional.orElseGet(Optional.java:267)
at com.google.cloud.spark.bigquery.SchemaConverters.getDataType(SchemaConverters.java:184)
at com.google.cloud.spark.bigquery.SchemaConverters.convert(SchemaConverters.java:166)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at com.google.cloud.spark.bigquery.SchemaConverters.toSpark(SchemaConverters.java:54)
at com.google.cloud.spark.bigquery.BigQueryRelation.<init>(BigQueryRelation.scala:37)
at com.google.cloud.spark.bigquery.direct.DirectBigQueryRelation.<init>(DirectBigQueryRelation.scala:48)
at com.google.cloud.spark.bigquery.BigQueryRelationProvider.createRelationInternal(BigQueryRelationProvider.scala:78)
at com.google.cloud.spark.bigquery.BigQueryRelationProvider.createRelation(BigQueryRelationProvider.scala:45)
at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:318)
at org.apache.spark.sql.DataFrameReader.loadV1Source(DataFrameReader.scala:223)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:211)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:167)```
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Getting error while reading BIGNUMERIC data type from a ...
I have a Dataproc Spark job which reads data from a Big Query table. The Big Query table is having a column of...
Read more >Data definition language (DDL) statements in Google ...
IF NOT EXISTS : If any dataset exists with the same name, the CREATE statement has no effect. Cannot appear with OR REPLACE...
Read more >BigQuery connector — Starburst Enterprise
It does not leave any temporary files in Google Cloud Storage. Rows are read directly from BigQuery servers using an Avro wire format....
Read more >3.3 - Formatted Input | STAT 480
pointer-control tells SAS at what column to start reading the data value ... In practice, the brackets (<>) should not appear in the...
Read more >spark-bigquery-connector - Scaladex
It does not leave any temporary files in Google Cloud Storage. Rows are read directly from BigQuery servers using the Arrow or Avro...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The latest version does not contain the bignumeric support yet, we will release it soon.
+1 for this issue. At PayPal - we have a lot of datasets defining BigNumeric type in BQ. Read uses-cases via spark are blocked.