Skip to content

Instantly share code, notes, and snippets.

@arturroo
Created April 24, 2020 09:44
Show Gist options
  • Save arturroo/ec63591fd725a7299995006602265699 to your computer and use it in GitHub Desktop.
Save arturroo/ec63591fd725a7299995006602265699 to your computer and use it in GitHub Desktop.
Circe Json to Scio BigQueryType Class parse error
sbt "-Dbigquery.project=my-project" "-Dhttp.proxyHost=localhost" "-Dhttp.proxyPort=3128" "-Dhttps.proxyHost=localhost" "-Dhttps.proxyPort=3128" "runMain mypackage.Main --project=my-project --tempLocation=gs://my-project/dataflow/tmp --staging-location=gs://my-project/dataflow/stage --runner=DirectRunner"
[info] Loading settings for project global-plugins from idea.sbt ...
[info] Loading global plugins from .sbt\1.0\plugins
[info] Loading settings for project myproject-build from plugins.sbt ...
[info] Loading project definition from project
[info] Loading settings for project myproject from build.sbt ...
[info] Set current project to myproject (in build file:./)
[info] Compiling 1 Scala source to target\scala-2.13\classes ...
[error] src\main\scala\mypackage\Main.scala:214:88: implicit error;
[error] !I decode: DerivedDecoder[NestedFromSchema]
[error] ??DerivedDecoder.decodeIncompleteCaseClass invalid because
[error] !I ffp: FnFromProduct.Aux[P => A, NestedFromSchema]
[error] ??DerivedDecoder.deriveDecoder invalid because
[error] !I decode: ReprDecoder[R]
[error] ????Decoder.decodeIterable invalid because
[error] !I decodeA: Decoder[Meta$1]
[error] ??????Decoder.decodeLiteralString invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????Decoder.decodeLiteralDouble invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????Decoder.decodeLiteralFloat invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????Decoder.decodeLiteralLong invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????Decoder.decodeLiteralInt invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????Decoder.decodeLiteralChar invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????Decoder.decodeLiteralBoolean invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????Decoder.importedDecoder invalid because
[error] !I exported: Exported[Decoder[Meta$1]]
[error]
[error] ????????Decoder.decodeLiteralString invalid because
[error] !I L (No singleton value available for List[mypackage.Main.Meta$1].): ValueOf[List[Meta$1]]
[error] ????????Decoder.decodeLiteralDouble invalid because
[error] !I L (No singleton value available for List[mypackage.Main.Meta$1].): ValueOf[List[Meta$1]]
[error] ????????Decoder.decodeLiteralFloat invalid because
[error] !I L (No singleton value available for List[mypackage.Main.Meta$1].): ValueOf[List[Meta$1]]
[error] ????????Decoder.decodeLiteralLong invalid because
[error] !I L (No singleton value available for List[mypackage.Main.Meta$1].): ValueOf[List[Meta$1]]
[error] ????????Decoder.decodeLiteralInt invalid because
[error] !I L (No singleton value available for List[mypackage.Main.Meta$1].): ValueOf[List[Meta$1]]
[error] ????????Decoder.decodeLiteralChar invalid because
[error] !I L (No singleton value available for List[mypackage.Main.Meta$1].): ValueOf[List[Meta$1]]
[error] ????????Decoder.decodeLiteralBoolean invalid because
[error] !I L (No singleton value available for List[mypackage.Main.Meta$1].): ValueOf[List[Meta$1]]
[error] ????????Decoder.importedDecoder invalid because
[error] !I exported: Exported[Decoder[List[Meta$1]]]
[error] ????????Decoder.decodeList invalid because
[error] !I decodeA: Decoder[Meta$1]
[error] ??????????Decoder.decodeLiteralString invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????????Decoder.decodeLiteralDouble invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????????Decoder.decodeLiteralFloat invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????????Decoder.decodeLiteralLong invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????????Decoder.decodeLiteralInt invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????????Decoder.decodeLiteralChar invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????????Decoder.decodeLiteralBoolean invalid because
[error] !I L (No singleton value available for mypackage.Main.Meta$1.): ValueOf[Meta$1]
[error] ??????????Decoder.importedDecoder invalid because
[error] !I exported: Exported[Decoder[Meta$1]]
[error] implicit val nestedFromSchemaDecoder: Decoder[NestedFromSchema] = deriveDecoder[NestedFromSchema]
[error] ^
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 13 s, completed 24.04.2020 11:30:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment