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.

AVRO: a class name is captured instead of a format name

See original GitHub issue

Avro format is displayed as org.apache.spark.sql.avro.AvroFileFormat@16c9ec5b. Should be just Avro

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
radford1commented, Apr 22, 2020

I actually used your cobrix library in the last year or two so I will gladly try to take that on! I’ll also take a crack at this avro issue. It seems like we can add some case logic in this snippet to handle issues like this

case cmd: InsertIntoHadoopFsRelationCommand =>
  val path = cmd.outputPath.toString
  val format = cmd.fileFormat.toString
  val qPath = pathQualifier.qualify(path)
  WriteCommand(cmd.nodeName, SourceIdentifier(Some(format), qPath), cmd.mode, cmd.query, cmd.options)
0reactions
wajdacommented, Apr 22, 2020

Yep. And leave toString there as a default case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best practice for Avro schema/field naming regarding aliases
Question: I know I MUST use the alias on the renamed field. However, I could also name each schema with a name that...
Read more >
Formats, Serializers, and Deserializers
(For Avro, the reference name is the fully qualified schema name, for JSON ... The full class names for the above strategies consist...
Read more >
Deserialize an Avro file with C# - Stack Overflow
I was able to get full data access working using dynamic . Here's the code for accessing the raw body data, which is...
Read more >
[Avro] Incompatibility with Avro >=1.9.0 · Issue #167 - GitHub
I believe @cowtowncoder is referring to the schema name -> class name resolution; These don't involve the Jackson 1.x dependency, but break 1.8....
Read more >
Loading Avro data from Cloud Storage | BigQuery
For File format, select Avro. On the Create table page, in the Destination section: For Dataset name, choose the appropriate dataset. Verify that...
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