Repository navigation
Conversation
chore: recover package-lock.json chore: removed diff file
79886c1 to
96881d9
Compare
Codecov Report
@@ Coverage Diff @@
## master #1031 +/- ##
===========================================
- Coverage 81.36% 57.34% -24.02%
===========================================
Files 86 86
Lines 4432 4487 +55
Branches 812 831 +19
===========================================
- Hits 3606 2573 -1033
- Misses 558 1554 +996
- Partials 268 360 +92
Continue to review full report at Codecov.
|
arthurschreiber
left a comment
There was a problem hiding this comment.
I looked over this, and there's a few suggestions I have. 😄
-
The
columnMetadataevent is not the only place where these types are exposed. They are also exposed viarowevents. We'd have to do the same mapping there, but we need to make sure this mapping only happens once upfront, and not for each individualrowevent, as that could impact performance too much. -
I'm not super happy about having another optional property on the
getDataTypeinterface. What do you think of moving the logic of which type maps to which other type maybe into thespecifyDataTypefunction instead?
|
Yup sounds good for both. I'll go over the changes and refactor them. |
|
@IanChokS I pushed some additional changes to your PR. I moved the mapping into the parser, where we now map the internal types to external types whenever a new column metadata list is assigned to the parser. This way, the mapping only happens once (after we parsed the column metadata). When we parse What do you think? |
|
Sounds good 👍 Thanks! |
f1e15c3 to
8bc8553
Compare
8bc8553 to
283d3c8
Compare
55a6f70 to
9c581f7
Compare
BREAKING CHANGE: Column metadata could sometimes return internal, variable length data types like `IntN`, `BitN`, `FloatN` and similar. These types were not intended for external use, and should never have been exposed in the first place. We now map these internal types to proper external types e.g. `IntN` is now mapped to `TinyInt`, `SmallInt`, `Int` or `BigInt`, based on the datalength of the variable length type.
9c581f7 to
9bb84e5
Compare
…ba/tedious into 886-metadata-deprecated-types
|
@arthurschreiber Any plans on dropping node.js 6 or 8 support soon? |
|
Thanks @IanChokS. The underlying problem (#886) is still valid. Column metadata still exposes internal types like Generated by Claude Code |
A fix for #886, #1050