-
Notifications
You must be signed in to change notification settings - Fork 323
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
Add replace
, trim
to Column. Better number parsing.
#6253
Conversation
10124ba
to
fbd9653
Compare
replace
, trim
to Column.replace
, trim
to Column. Better number parsing.
distribution/lib/Standard/Database/0.0.0-dev/src/Internal/Postgres/Postgres_Dialect.enso
Outdated
Show resolved
Hide resolved
std-bits/table/src/main/java/org/enso/table/parsing/NumberParser.java
Outdated
Show resolved
Hide resolved
std-bits/table/src/main/java/org/enso/table/parsing/NumberParser.java
Outdated
Show resolved
Hide resolved
std-bits/table/src/main/java/org/enso/table/parsing/NumberParser.java
Outdated
Show resolved
Hide resolved
test/Table_Tests/src/Common_Table_Operations/Column_Operations_Spec.enso
Show resolved
Hide resolved
formatter.parse "100_0_0_0" . should_equal "100_0_0_0" | ||
formatter.parse "1__00_000,0" . should_equal "1__00_000,0" |
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.
Yeah that looks much better!
distribution/lib/Standard/Table/0.0.0-dev/src/Data/Data_Formatter.enso
Outdated
Show resolved
Hide resolved
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.
Looks really great.
The NumberParser looks really cool - it does do some neat magic. I think it could benefit from a bit more description of how it's supposed to work with the pattern-indices and format detection - as this is a non-trivial mechanism and one that can potentially lead to subtle issues - so it will be good to have a clear understanding of what are it's expected behaviours.
The tests are awesome! Just I think we should have tests for decimals analogous to the ones for integers - as unless I skipped something I did not see such tests and I think they are just as important as once we go into decimal territory the .
vs ,
logic gets even more convoluted.
Conditional functionality based on the dialect.
Conditional functionality based on the dialect.
Add TRIM, LTRIM and RTRIM to Postgres.
8abc09c
to
a665654
Compare
* develop: Turn null into UnexpectedExpression when Union type is incomplete (#6415) Ensure that IO.println does not fail if `to_text` returned a non-Text value. (#6223) Improve inlining of `<|` on (GraalVM EE) (#6384) Feat: update templates styles and feature (#6071) 5127 Add Table.parse_to_columns to parse a single column to a set of columns. (#6383) URL handling (#6243) Exclude comparison operators from modifier logic (#6370) Better cleanup of project management test suite (#6392) Fix all eslint errors (#6267) Infer SQLite types locally (#6381) Vector Editor with List Editor and adding elements. (#6363) Add typechecks to Aggregate and Cross Tab (#6380) Forbid edits in read-only mode (#6342) Add Table.parse_text_to_table to convert Text to a Table. (#6294) Adding typechecks to Column Operations (#6298) Rollback cloud options groups (#6331) Project folder not renamed after project name change (#6369) Add `replace`, `trim` to Column. Better number parsing. (#6253) Read-only mode for controllers (#6259) Prevent default for all events, fixing multiple IDE bugs (#6364)
Pull Request Description
replace
with same syntax as onText
to an in-memoryColumn
.trim
with same syntax as onText
to an in-memoryColumn
.trim
to in-databaseColumn
.is_supported
to dialects and exposed the dialect consistently on theConnection
.write_table
support toJSON_File
allowingTable.write
to write JSON.replace_text
fromTable
.write_json
fromTable
.Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.