Skip to content

Commit

Permalink
Fix issue 1733
Browse files Browse the repository at this point in the history
  • Loading branch information
penghuo committed Oct 21, 2024
1 parent fe21979 commit b68f6dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 12 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

./gradlew assemble

OS_RELEASE="opensearch-2.17.1"
SQL_PLUGIN="opensearch-sql-2.17.1.0"
SQL_PLUGIN_ZIP="${SQL_PLUGIN}-SNAPSHOT.zip"

rm -rf /Users/penghuo/release/opensearch/${OS_RELEASE}/plugins/${SQL_PLUGIN}
cp /Users/penghuo/oss/os-sql/plugin/build/distributions/${SQL_PLUGIN_ZIP} /Users/penghuo/release/opensearch/${OS_RELEASE}/plugins
unzip /Users/penghuo/release/opensearch/${OS_RELEASE}/plugins/${SQL_PLUGIN_ZIP} -d /Users/penghuo/release/opensearch/${OS_RELEASE}/plugins/${SQL_PLUGIN}
rm /Users/penghuo/release/opensearch/${OS_RELEASE}/plugins/${SQL_PLUGIN_ZIP}
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,6 @@ private ExprValue parseArray(
if (content.objectValue() instanceof ObjectNode) {
result.add(parseStruct(content, prefix, supportArrays));
// non-object type arrays are only supported when parsing inner_hits of OS response.
} else if (!(type instanceof OpenSearchDataType
&& ((OpenSearchDataType) type).getExprType().equals(ARRAY))
&& !supportArrays) {
return parseInnerArrayValue(content.array().next(), prefix, type, supportArrays);
} else {
content
.array()
Expand Down

0 comments on commit b68f6dc

Please sign in to comment.