Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elastic_search_serialization is having issues with dateTime() fields on indexing the DB #516

Open
batuhandirek opened this issue Sep 25, 2024 · 0 comments
Labels
bug bug community community Effort - Unknown Effort - Unknown Frequency - Weekly Frequency - Weekly Reach - VeryFew Reach - VeryFew Severity - S3 Severity - S3

Comments

@batuhandirek
Copy link

Memgraph version
2.19.0

Environment
Docker image of memgraph-mage

Describe the bug
elastic_search_serialization is having issues with entities if they have dateTime() kind of field - it cannot index

To Reproduce
Follow along this blog post

  1. Load the Karate Dataset
  2. Run MATCH (a) SET a.test = dateTime()
  3. Try to follow the steps - indexing with CALL elastic_search_serialization.index_db("mem_nodes", "mem_edges", 4) YIELD * RETURN *; will fail with _mgp.LogicErrorError: Logic error.

Expected behavior
DB should be indexed

Logs
Error stack:

elastic_search_serialization.index_db: Traceback (most recent call last):
  File "/usr/lib/memgraph/query_modules/elastic_search_serialization.py", line 343, in index_db
    nodes, edges = generate_documents_from_db(context)
  File "/usr/lib/memgraph/query_modules/elastic_search_serialization.py", line 142, in generate_documents_from_db
    vertices.append(serialize_vertex(vertex))
  File "/usr/lib/memgraph/query_modules/elastic_search_serialization.py", line 69, in serialize_vertex
    doc = serialize_properties(vertex.properties.items())
  File "/usr/lib/memgraph/query_modules/elastic_search_serialization.py", line 96, in serialize_properties
    for prop_key, prop_value in properties:
  File "/usr/lib/memgraph/python_support/mgp.py", line 289, in items
    properties_it = self._vertex_or_edge.iter_properties()
_mgp.LogicErrorError: Logic error.

Additional context
Not really

Verification Environment
I will replicate it again and check

@batuhandirek batuhandirek added the bug bug label Sep 25, 2024
@matea16 matea16 added community community Effort - Unknown Effort - Unknown Severity - S3 Severity - S3 Frequency - Weekly Frequency - Weekly Reach - VeryFew Reach - VeryFew labels Sep 25, 2024
@matea16 matea16 transferred this issue from memgraph/memgraph Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug community community Effort - Unknown Effort - Unknown Frequency - Weekly Frequency - Weekly Reach - VeryFew Reach - VeryFew Severity - S3 Severity - S3
Projects
Development

No branches or pull requests

2 participants