Repository navigation
Run the function tests that implicit-cast lookup (#418) now passes - #4
Open
alexskinner wants to merge 1 commit into
Open
alexskinner wants to merge 1 commit into
alexskinner wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #3 (pin bump to KipData/KiteSQL
522eb00). Retarget tomainafter #3 merges.Why
KipData/KiteSQL#418 resolves function arguments by implicit cast. Thirteen tests that were ignored because exact-type lookup could not reach functions on length-bounded columns or NULL arguments now pass:
length_function,left_right_functions,concat_functions,repeat_reverse_functions,locate_instr_position_functions,ltrim_rtrim_functions,length_in_order_by_on_varchar_column,isnull_function,substring_index_function,round_return_type_follows_argument,replace_on_bounded_columns_in_dml,string_function_edge_cases_match_mysql,round_null_handling.Change
#[ignore]from those tests.hook-functions. #418 resolves fixed arity only.CONCAT('a', 1),LENGTH(int_col)) are not an implicit cast in core.hook-numeric-typing.src/functions.rs.The per-type HEX, ISNULL and ROUND overloads stay on purpose. Their behaviour or result type follows the argument type, and routing integers through DOUBLE would lose precision. So this PR re-enables tests rather than removing code.
Testing
Locally:
cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo testandcargo test --test slt_defaultall pass.