Comments (4)
I looked into the test and found that Columns
seems to retrieve column names by design... I wonder why this method is needed since there already exists similar ones like ColumnNames
and ColumnTypes
. Maybe we can change its behavior to retrieve values or replace it with a new method called Values
?
from azure-kusto-go.
This is a leave over from my early design work that has somehow managed to stay in here. Kudos for finding it.
When I was doing the first drafts I was looking at both database/sql, spanner's and a few other APIs.
I blame too many late nights for this, but this is really a completely wrong implementation. The kind of thing I should have said, what the hell are you doing.......
What this should be doing is exactly what you said, grabbing the value from those positional locations in the row.
We should probably have this functionality, but this is now kind of a pickle. It can't be Values, we offer an attribute that provides the Values. We can't change it, because that could cause someone some consequences.
I'm not the current maintainer, so I've sent this up the chain to see what they want to do.
from azure-kusto-go.
@element-of-surprise @yogilad Thanks for your effort! I think this issue may be addressed as follows:
- Decouple the logic of
boolConvert
,dateTimeConvert
, etc fromrow.ToStruct
so they can be reused for any givenreflect.Type
andreflect.Value
, instead of being tied to struct fields; - Add a new method (could be called
ExtractValues
or whatever) to read values from a row easily.
How do you like these changes? I can help implement them.
from azure-kusto-go.
Fixed by #75
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.