Giter VIP home page Giter VIP logo

Comments (4)

element-of-surprise avatar element-of-surprise commented on August 16, 2024

Was able to replicate.

Tracked this down to being a translation of V1 frame type information. Mgmt uses the v1 frames, which output column type data in every frame. That type data has two different fields to describe the column data:

  • ColumnType
  • DataType

DataType is the .Net equivalent name. ColumnType is the Kusto name. But most of the time ColumnType is empty and we have to translate off the DataType.

There was a bad assumption on some of the names, so we were not translating "boolean" into Bool. I added translation for every name and alias listed in the docs.

Our internal integration tests were exclusively using Mgmt() for making changes and not reading data, hermetic tests of course wouldn't catch this if our assumptions were wrong. Added a regression in the integration tests.

Made the error drop more relevant information related to this problem. Haven't tracked why this error wasn't returned and displayed yet.

Will update soonish.

from azure-kusto-go.

element-of-surprise avatar element-of-surprise commented on August 16, 2024
on the screen but doesn't actually return an error.

Iter.Do(), when replicated returns an error and does not make calls to log. Since there are a few paths you could be doing, want to make sure we cover the right one.

Can you output the Mgmt() call + iteration code?

from azure-kusto-go.

patrickbsf avatar patrickbsf commented on August 16, 2024

Ah, got it. I misspoke. An error is returned, but not from Mgmt (which is correct). It's returning from the Next() call [where the parsing is occurring].

It's a very simple test program where I iterate through a variety of commands to pass through to Mgmt, see what errors come back,interrogate the rows, etc.

It's basically:

		rows, err := kustoClient.Mgmt(ctx, db, ddl)
		if err != nil {
			fmt.Println("Mgmt Error:", err)
			break
		}

		for {
			row, err := rows.Next()
			if err != nil {
				if err == io.EOF {
					break
				}
				fmt.Println("Row Error:", err)
				break
			}
			fmt.Printf("%#v\n", row)
		}

..and the output is:
Row Error: Op(OpMgmt): Kind(KInternal): DataTable.Columns had entry with .ColumnType set to a type

Which means an error from Mgmt itself wasn't returned, but the ColumnType error was returned from the first rows.Next() call.

from azure-kusto-go.

element-of-surprise avatar element-of-surprise commented on August 16, 2024

Thanks for that. That confirms we are getting an error output and there wasn't another issue.

I've pushed out a release 0.1.1 that addresses this issue.

Any further problems on this issue, please feel free to re-open.

from azure-kusto-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.