Skip to content

Conversation

@kukushking
Copy link
Contributor

Feature or Bugfix

  • Bugfix

Fixes mapping update error due to mapping being created with a different type on the 1st ingested document:

opensearchpy.helpers.errors.BulkIndexError: ('1 document(s) failed to index.', [{'index': {'_index': 'test_index_csv_local_20c32d5a', '_id': '4c988c9e-6519-4cd7-8467-f7fce41e5173', 'status': 400, 'error': {'type': 'illegal_argument_exception', 'reason': 'mapper [business_phone_number] cannot be changed from type [float] to [long]'}, 'data': {'business_address': '2162 24th Ave', 'business_city': 'San Francisco', 'business_id': 5794, 'business_latitude': 37.747228, 'business_location': {'lon': -122.481299, 'lat': 37.747228}, 'business_longitude': -122.481299, 'business_name': 'Soup-or-Salad', 'business_postal_code': 94116, 'business_state': 'CA', 'inspection_date': '2016-09-07T00:00:00.000', 'inspection_id': '5794_20160907', 'inspection_score': 96, 'inspection_type': 'Routine - Unscheduled', 'risk_category': 'Low Risk', 'violation_description': 'Unapproved or unmaintained equipment or utensils', 'violation_id': '5794_20160907_103144', 'business_phone_number': 14155752700}}}])

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@kukushking kukushking added the bug Something isn't working label Apr 12, 2023
@kukushking kukushking self-assigned this Apr 12, 2023
@malachi-constant
Copy link
Contributor

AWS CodeBuild CI Report

  • CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
  • Commit ID: 886ccb4
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@malachi-constant
Copy link
Contributor

AWS CodeBuild CI Report

  • CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
  • Commit ID: 886ccb4
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@malachi-constant
Copy link
Contributor

AWS CodeBuild CI Report

  • CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
  • Commit ID: b182ab6
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@malachi-constant
Copy link
Contributor

AWS CodeBuild CI Report

  • CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
  • Commit ID: b182ab6
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@kukushking kukushking merged commit fca19f4 into main Apr 12, 2023
@kukushking kukushking deleted the fix/opensearch-mapping-update branch April 12, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants