eto-ai / rikai

Parquet-based ML data format optimized for working with unstructured data
https://rikai.readthedocs.io/en/latest/
Apache License 2.0
136 stars 19 forks source link

Use model name to be the default column name for ML_PREDICT #576

Closed eddyxu closed 2 years ago

eddyxu commented 2 years ago

Previously ML_PREDICT's default columns are the concat string of the underneath dynamically generated udfs.

This PR uses the model name as the default column name for ML_PREDICT

SELECT ML_PREDICT(ssd, image) FROM images

# Schema
 |-- ssd: array (nullable = true)
 |    |-- element: struct (containsNull = true)
 |    |    |-- box: box2d (nullable = true)
 |    |    |-- score: float (nullable = true)
 |    |    |-- label_id: integer (nullable = true)
eddyxu commented 2 years ago

Closes #575