fix: Stable StarRocks Driver and Add test code#8619
Conversation
…ontainer & fix VARCHAR binary return Signed-off-by: Edward Kim <kjjs1996@gmail.com>
Signed-off-by: Edward Kim <kjjs1996@gmail.com>
|
These test failures are due to missing environment variables (S3, GCS, Druid, MotherDuck credentials) |
- Change BINARY/VARBINARY/BLOB from CODE_BYTES to CODE_STRING
for consistency with MySQL driver behavior
- Expand type mapping unit tests to cover all StarRocks types:
- Boolean, Integer, Float, String, Binary, DateTime
- Semi-structured types (JSON, ARRAY, MAP, STRUCT)
- Aggregate-only types (HLL, BITMAP, PERCENTILE) as unsupported
- Update integration test expectations for VARBINARY type
Signed-off-by: Edward Kim <kjjs1996@gmail.com>
|
Hi, @k-anshul |
|
Hey @EdwardArchive Thank you for your contribution. |
|
Hi @k-anshul, |
- Add metricsview aggregation, toplist, and comparison tests for StarRocks - Implement Stream Load API for test data loading with FE→BE redirect handling - Add NULLS LAST for consistent NULL ordering in StarRocks - Fix TIMESTAMP handling to use sql.NullTime with parseTime=true - Add CONVERT_TZ for timezone support in DateTruncExpr - Fix schema resolution using InformationSchema lookup - Cast percent_of_total result to DOUBLE for consistent numeric handling - Update StarRocks documentation to match driver implementation Signed-off-by: EdwardKim <kjjs1996@gmail.com>
|
Hey @k-anshul, |
|
These test failures are due to missing environment variables (Druid, MotherDuck) DNS and credentials |
|
Thank you for your contribution. |
* Add Docker-based integration tests using StarRocks 4.0.3 all-in-one container & fix VARCHAR binary return
Signed-off-by: Edward Kim <kjjs1996@gmail.com>
* Fix: golangci-lint errors in StarRocks driver
Signed-off-by: Edward Kim <kjjs1996@gmail.com>
* fix(starrocks): align binary type mapping with MySQL driver
- Change BINARY/VARBINARY/BLOB from CODE_BYTES to CODE_STRING
for consistency with MySQL driver behavior
- Expand type mapping unit tests to cover all StarRocks types:
- Boolean, Integer, Float, String, Binary, DateTime
- Semi-structured types (JSON, ARRAY, MAP, STRUCT)
- Aggregate-only types (HLL, BITMAP, PERCENTILE) as unsupported
- Update integration test expectations for VARBINARY type
Signed-off-by: Edward Kim <kjjs1996@gmail.com>
* feat(starrocks): add metricsview tests and fix driver issues
- Add metricsview aggregation, toplist, and comparison tests for StarRocks
- Implement Stream Load API for test data loading with FE→BE redirect handling
- Add NULLS LAST for consistent NULL ordering in StarRocks
- Fix TIMESTAMP handling to use sql.NullTime with parseTime=true
- Add CONVERT_TZ for timezone support in DateTruncExpr
- Fix schema resolution using InformationSchema lookup
- Cast percent_of_total result to DOUBLE for consistent numeric handling
- Update StarRocks documentation to match driver implementation
Signed-off-by: EdwardKim <kjjs1996@gmail.com>
* Update docs/docs/build/connectors/olap/starrocks.md
---------
Signed-off-by: Edward Kim <kjjs1996@gmail.com>
Signed-off-by: EdwardKim <kjjs1996@gmail.com>
Co-authored-by: Anshul Khandelwal <12948312+k-anshul@users.noreply.github.com>
Related PR : #8454
Problem:
driver behavior when scanning into
anytypeSolution:
Testing:
Type mapping (MySQL protocol):
Checklist: