Stefanietry commented on code in PR #8068:
URL: https://github.com/apache/paimon/pull/8068#discussion_r3340126664
##########
paimon-spark/paimon-spark-common/src/main/scala/org/apache/paimon/spark/PaimonSparkTableBase.scala:
##########
@@ -118,6 +118,9 @@ abstract class PaimonSparkTableBase(val table: Table)
_metadataColumns.append(PaimonMetadataColumn.ROW_ID)
_metadataColumns.append(PaimonMetadataColumn.SEQUENCE_NUMBER)
}
+ if (!coreOptions.vectorField().isEmpty) {
+ _metadataColumns.append(PaimonMetadataColumn.VECTOR_SEARCH_SCORE)
Review Comment:
Thanks for your clarification, as suggested, the judgment condition has been
changed to :
`if (table.isInstanceOf[VectorSearchTable]) {
_metadataColumns.append(PaimonMetadataColumn.VECTOR_SEARCH_SCORE)
}`
If process a normal query as shown above, an error will occur during the
analysis phase. The specific error message is as follows:
org.apache.spark.sql.AnalysisException: cannot resolve
'__paimon_vector_search_score' given input columns:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]