usql icon indicating copy to clipboard operation
usql copied to clipboard

Microsoft.Analytics.Samples.Formats.Avro is broken

Open viblo opened this issue 7 years ago • 5 comments

The AvroExtractor.Extract method, public override IEnumerable<IRow> Extract(IUnstructuredReader input, IUpdatableRow output), uses the Length of the input stream. However, the Length property on the BaseStream is no longer supported, and when I try to run it I get this error:

The [Length] property of [IUnstructuredReader.BaseStream] is intentionally not supported to avoid ambiguity between the physical length of [IUnstructuredReader.BaseStream] and the logical length of the split of the entire input stream assigned to a vertex.

The solution is available in this repo here: https://github.com/Azure/usql/tree/master/Examples/DataFormats

viblo avatar Jun 20 '17 13:06 viblo

Facing the same problem today after stuggling with the nuGet packages raised in the issue #88

Mikeprod avatar Aug 23 '17 14:08 Mikeprod

I'm facing the same problem.

wesselkranenborg avatar Aug 28 '17 11:08 wesselkranenborg

Did you follow the instructions here?

flomader-zz avatar Aug 30 '17 15:08 flomader-zz

I can not reproduce the problem anymore. I guess either because I did it differently this time or because the data format sample code got updated. ( #88 is still an issue )

viblo avatar Sep 15 '17 15:09 viblo

Will be obsolete when https://github.com/Azure/usql/pull/98 has been merged because it uses a different Avro Library.

flomader-zz avatar Oct 09 '17 21:10 flomader-zz