Skip to content

Commit

Permalink
Address minor review comments.
Browse files Browse the repository at this point in the history
Signed-off-by: currantw <[email protected]>
  • Loading branch information
currantw committed Nov 19, 2024
1 parent cff2418 commit 8324c4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 6 additions & 5 deletions doctest/test_docs.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0

import click
import doctest
import json
import os
import os.path
import random
import zc.customdoctests
import json
import re
import random
import subprocess
import unittest
import zc.customdoctests
import click

from functools import partial
from opensearch_sql_cli.formatter import Formatter
from opensearch_sql_cli.opensearch_connection import OpenSearchConnection
from opensearch_sql_cli.utils import OutputSettings
from opensearch_sql_cli.formatter import Formatter
from opensearchpy import OpenSearch, helpers

ENDPOINT = "http://localhost:9200"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,7 @@ public void extendTypeMapping(Map<String, OpenSearchDataType> typeMapping) {
for (var field : typeMapping.keySet()) {
// Prevent overwriting, because aggregation engine may be not aware
// of all niceties of all types.
if (!this.typeMapping.containsKey(field)) {
this.typeMapping.put(field, typeMapping.get(field));
}
this.typeMapping.putIfAbsent(field, typeMapping.get(field));
}
}

Expand Down

0 comments on commit 8324c4c

Please sign in to comment.