Skip to content
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

chore:(ast) support cast null to zero value #278

Merged
merged 3 commits into from Aug 22, 2022
Merged

chore:(ast) support cast null to zero value #278

merged 3 commits into from Aug 22, 2022

Conversation

AsterDY
Copy link
Collaborator

@AsterDY AsterDY commented Aug 9, 2022

Breaking Change

node V_NULL will be supported to cast into zero value of below API:

  • String(): return "" instead of "null"
  • Bool(): return false without error
  • Int64(): return int64(0) without error
  • Float64(): return float64(0) without error
  • Number(): return Number("0") without error

@AsterDY AsterDY changed the title feat:(ast) support cast null to zero value chore:(ast) support cast null to zero value Aug 9, 2022
@AsterDY AsterDY merged commit cf08d54 into main Aug 22, 2022
@AsterDY AsterDY deleted the feat/ast_null branch August 22, 2022 08:11
liuq19 pushed a commit that referenced this pull request Aug 29, 2022
liuq19 added a commit that referenced this pull request Sep 20, 2022
* opt: faster f64toa

* feat:(option) add option `MaxInlineDepth` for addjust compilation inline depth (#287)

* feat: make compilation depth changeable

* feat: add option `DefaultMaxInlineDepth`

* add recurse depth = 10

* refactor

* doc: readme and comment

* opt: add `_MAX_FIELDS` to limit the inlining of big struct

* update license

* fix typo

* feat:(ast) support cast `null` to empty value (#278)

* fix: recompile

* test: add ftoa benchmarks

* feat: add f32toa

* fix: add license

* opt: optimize decimal

* fix benchmarks

* fix: poor performance in atof32

* test: add more integer test

Co-authored-by: liuqiang <liuqiang.06@bytedance.com>
Co-authored-by: Yi Duan <duanyi.aster@bytedance.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants