You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chrislu
2b35cca9bd
refactor: Split sql_functions.go into smaller, focused files
**File Structure Before:**
- sql_functions.go (850+ lines)
- sql_functions_test.go (1,205+ lines)
**File Structure After:**
- function_helpers.go (105 lines) - shared utility functions
- arithmetic_functions.go (205 lines) - arithmetic operators & math functions
- datetime_functions.go (170 lines) - date/time functions & constants
- string_functions.go (335 lines) - string manipulation functions
- arithmetic_functions_test.go (560 lines) - tests for arithmetic & math
- datetime_functions_test.go (370 lines) - tests for date/time functions
- string_functions_test.go (270 lines) - tests for string functions
**Benefits:**
✅ Better organization by functional domain
✅ Easier to find and maintain specific function types
✅ Smaller, more manageable file sizes
✅ Clear separation of concerns
✅ Improved code readability and navigation
✅ All tests passing - no functionality lost
**Total:** 7 focused files (1,455 lines) vs 2 monolithic files (2,055+ lines)
This refactoring improves maintainability while preserving all functionality.
|
1 month ago |
.. |
aggregations.go
|
change to pg_query_go
|
1 month ago |
arithmetic_functions.go
|
refactor: Split sql_functions.go into smaller, focused files
|
1 month ago |
arithmetic_functions_test.go
|
refactor: Split sql_functions.go into smaller, focused files
|
1 month ago |
broker_client.go
|
fix todo
|
1 month ago |
catalog.go
|
handling errors
|
1 month ago |
data_conversion.go
|
refactor
|
1 month ago |
datetime_functions.go
|
refactor: Split sql_functions.go into smaller, focused files
|
1 month ago |
datetime_functions_test.go
|
refactor: Split sql_functions.go into smaller, focused files
|
1 month ago |
describe.go
|
no more mysql
|
1 month ago |
engine.go
|
handling errors
|
1 month ago |
engine_test.go
|
change to pg_query_go
|
1 month ago |
errors.go
|
handling errors
|
1 month ago |
function_helpers.go
|
refactor: Split sql_functions.go into smaller, focused files
|
1 month ago |
hybrid_message_scanner.go
|
fix
|
1 month ago |
hybrid_test.go
|
improve tests
|
1 month ago |
mock_test.go
|
use mock for testing
|
1 month ago |
mocks_test.go
|
fix todo
|
1 month ago |
parquet_scanner.go
|
fix todo
|
1 month ago |
query_parsing_test.go
|
fix
|
1 month ago |
real_namespace_test.go
|
fix tests
|
1 month ago |
schema_parsing_test.go
|
improve tests
|
1 month ago |
select_test.go
|
improve tests
|
1 month ago |
sql_parser_config.go
|
no more mysql
|
1 month ago |
sql_types.go
|
change to pg_query_go
|
1 month ago |
string_functions.go
|
refactor: Split sql_functions.go into smaller, focused files
|
1 month ago |
string_functions_test.go
|
refactor: Split sql_functions.go into smaller, focused files
|
1 month ago |
system_columns.go
|
fix after refactoring
|
1 month ago |
test_noschema_error.go
|
fix todo
|
1 month ago |
time_filter_test.go
|
fix
|
1 month ago |
types.go
|
fix todo
|
1 month ago |
window_functions_demo.go
|
feat: Add window function foundation with timestamp support
|
1 month ago |