question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not handle BIGNUMERICs while reading

See original GitHub issue

We 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:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
davidrabinowitzcommented, Jul 26, 2021

The latest version does not contain the bignumeric support yet, we will release it soon.

1reaction
Dee-Paccommented, May 10, 2021

+1 for this issue. At PayPal - we have a lot of datasets defining BigNumeric type in BQ. Read uses-cases via spark are blocked.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found