Skip to content

NPE when run on bigquery-emulator #435

@turb

Description

@turb

I open this bug for reference.

When trying to write test on synchronousQuery using bigquery-emulator:

Cannot invoke "com.google.cloud.bigquery.TableId.getProject()" because "tempTable" is null
java.lang.NullPointerException: Cannot invoke "com.google.cloud.bigquery.TableId.getProject()" because "tempTable" is null
	at no.nrk.bigquery.client.google.GoogleBigQueryClient.openServerStreams$1(GoogleBigQueryClient.scala:107)
	at no.nrk.bigquery.client.google.GoogleBigQueryClient.$anonfun$synchronousQueryExecute$12(GoogleBigQueryClient.scala:151)
	at fs2.Stream$.$anonfun$resourceWeak$3(Stream.scala:4047)
	at fs2.Stream.$anonfun$flatMap$1(Stream.scala:1275)
	at fs2.Pull$FlatMapR$1.unconsed(Pull.scala:1042)
	at fs2.Pull$FlatMapR$1.out(Pull.scala:1078)
	at fs2.Pull$.$anonfun$compile$24(Pull.scala:1236)
	at fs2.Pull$.$anonfun$compile$2(Pull.scala:952)
	at get @ fs2.internal.Scope.openScope(Scope.scala:275)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Pull$.$anonfun$compile$21(Pull.scala:1214)
	at update @ fs2.internal.Scope.releaseChildScope(Scope.scala:224)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at modify @ fs2.internal.Scope.close(Scope.scala:262)
	at flatMap @ fs2.Compiler$Target.flatMap(Compiler.scala:163)
	at flatMap @ fs2.Pull$.$anonfun$compile$18(Pull.scala:1213)
	at handleErrorWith @ fs2.Compiler$Target.handleErrorWith(Compiler.scala:161)
	at flatMap @ fs2.Pull$.goCloseScope$1(Pull.scala:1199)
	at get @ fs2.internal.Scope.openScope(Scope.scala:275)

This seems to be caused by goccy/bigquery-emulator#180

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions