Comments (4)
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.
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.
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.
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)
- ingest.IngestionMappingRef should define the default data type HOT 1
- "AllowWrite()" QueryOption required for operations which do not write data HOT 2
- `GetQueryCompletionInformation` get 380 rows, But `NextRowOrError` got EOF HOT 4
- DoOnRowOrError() returns "json: cannot unmarshal object into Go struct field DataSetCompletion.OneApiErrors of type string" HOT 4
- Unable to parse responses where "IsProgressive":false though includes progressive tables HOT 2
- API to set client version HOT 1
- Using system assigned identity without azidext HOT 2
- Miss init method when using MsiAuthentication way to generate TokenCredential HOT 1
- Kustainer connections. HOT 5
- Latest version is incompatible with azblob v1.0.0 HOT 4
- NewStatementBuilder mentioned in the docs but does not exist in the code HOT 1
- Add support to `ChainedTokenCredential` (azidentity) HOT 2
- OnRowOrError() returns "json: cannot unmarshal object into Go struct field DataSetCompletion.OneApiErrors of type string" HOT 2
- Management options are missing HOT 2
- cloudinfo.go GetMetadata fails permanently on initial timeout HOT 4
- Question regarding 3rd party licenses HOT 4
- Escape kusto.ParamType default value of type string HOT 1
- Queries with `project-rename` are not working when `distinct` called before rename HOT 3
- Use defined types with ToStruct HOT 2
- Create query for policy on cluster level HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-kusto-go.