-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: FIR-44128 report column types in go sdk #131
base: main
Are you sure you want to change the base?
Conversation
|
decimalPrefix = "Decimal(" | ||
numericPrefix = "numeric(" | ||
structPrefix = "struct(" | ||
suffix = ")" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the suffix name seems a little vague when seen in code, could you rename it to something like complexTypeSuffix
or closingBracketSuffix
?
|
||
type fireboltType struct { | ||
goType reflect.Type | ||
dbName string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd call this dbType
or it might be confused with database name.
if r.columns[index].fbType.precision > 0 && r.columns[index].fbType.scale > 0 { | ||
return r.columns[index].fbType.precision, r.columns[index].fbType.scale, true | ||
} | ||
return 0, 0, false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's a valid case when scale is 0, but precision is > 0. Redundant obviously, as it would be better represented by a different type, but nevertheless could occur.
Added types reporting for both inMemory and streaming rows.
For every column we now report