You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] SQL and PPL responses different types for the same things #1296
Activity
Yury-Fridlyand commentedon Jan 27, 2023
Some technical details. On response serialization
PPLcalls totypeNamefunction ofExprTypewhich returnsSTRINGforExprCoreType.STRING:sql/core/src/main/java/org/opensearch/sql/data/type/ExprCoreType.java
Lines 110 to 111 in a4f8066
stringforOpenSearchDataTypeOPENSEARCH_TEXTandOPENSEARCH_TEXT_KEYWORD:sql/opensearch/src/main/java/org/opensearch/sql/opensearch/data/type/OpenSearchDataType.java
Lines 136 to 137 in a4f8066
jdbcTypefield set to "string" in the costructor:sql/opensearch/src/main/java/org/opensearch/sql/opensearch/data/type/OpenSearchDataType.java
Line 33 in a4f8066
SQLcalls tolegacyTypeNamefunction ofExprTypewhich returnskeywordforExprCoreType.STRING:sql/core/src/main/java/org/opensearch/sql/data/type/ExprCoreType.java
Lines 115 to 116 in a4f8066
sql/core/src/main/java/org/opensearch/sql/data/type/ExprCoreType.java
Line 85 in a4f8066
textforOpenSearchDataTypeOPENSEARCH_TEXTandOPENSEARCH_TEXT_KEYWORD:sql/opensearch/src/main/java/org/opensearch/sql/opensearch/data/type/OpenSearchDataType.java
Lines 141 to 142 in a4f8066
sql/opensearch/src/main/java/org/opensearch/sql/opensearch/data/type/OpenSearchDataType.java
Lines 96 to 97 in a4f8066
acarbonetto commentedon Feb 2, 2023
Please also make sure https://github.com/opensearch-project/sql/blob/main/docs/user/general/datatypes.rst#data-types-mapping and https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/general/datatypes.rst#data-types-mapping are consistent