Giter VIP home page Giter VIP logo

Comments (17)

SuperBo avatar SuperBo commented on July 18, 2024 2

Thank you Memgraph team, you rocks 👍

from gqlalchemy.

matea16 avatar matea16 commented on July 18, 2024 1

Hi @SuperBo, I'm happy to let you know that zoned datetime data type has been added to Memgraph to the latest release with the following PR: memgraph/memgraph#1866

from gqlalchemy.

matea16 avatar matea16 commented on July 18, 2024 1

Yes, I'll make sure to have it ready by July 3rd

from gqlalchemy.

matea16 avatar matea16 commented on July 18, 2024

Hi @SuperBo, thank you for reporting this. Would you be able to share your DATA_CONFIG file in order for us to replicate your issue? You don't have to share real data if it's sensitive, I'm just interested in the format of the file

from gqlalchemy.

SuperBo avatar SuperBo commented on July 18, 2024

@matea16, here is example data, i'm using pyarrow==13.0.0

account_id,phone_no,created_dt,updated_dt
abc1,+1212423,2019-08-28 12:19:18,
bcd2,+12123232,2021-06-09 09:05:41,2021-06-09 09:05:41
b11e,+94745734,2021-12-13 16:42:45,2021-12-13 16:42:45

from gqlalchemy.

matea16 avatar matea16 commented on July 18, 2024

Thank you for providing the data, we'll take a look at your issue shortly. I'll let you know if we have any additional questions to help us with the debugging :)

from gqlalchemy.

katarinasupe avatar katarinasupe commented on July 18, 2024

Hi @SuperBo, I see that you shared your CSV data, but did you create a data configuration object, similar to the the documentation? If yes, can you share that too?

from gqlalchemy.

matea16 avatar matea16 commented on July 18, 2024

@SuperBo, I believe the issue with your CSV file could be due to the format of your date field. In our docs, you can see supported formats of temporal types, including the local time format. Let me know if adjusting that format helps

from gqlalchemy.

SuperBo avatar SuperBo commented on July 18, 2024

Hi @matea16, I also tested with iso datetime format "yyyy-MM-ddThh:mm:ss", and still met the same error.

@katarinasupe : of course, I created a data configuration like this

indices:
    accounts:
        - account_id
    transactions:
        - transaction_number

name_mappings:
    accounts:
        label: Account
    transactions:
        label: INTERACT

one_to_many_relations:
    accounts: []
    transactions: []

from gqlalchemy.

matea16 avatar matea16 commented on July 18, 2024

I tested it out with your configuration file and it works as expected for me, even with the previous format of your datetime objects. I will provide you below with the code snippet that worked, the only difference is in parsing the yaml file, let me know if that solves the issue:

with open("./data_config.yaml", "r") as stream:
   try:
       parsed_yaml = yaml.load(stream, Loader=SafeLoader)
   except yaml.YAMLError as exc:
       print(exc)

 importer = CSVLocalFileSystemImporter(
     data_configuration=parsed_yaml,
     path="./",
     memgraph=memgraph
 )

 importer.translate(drop_database_on_start=True)

from gqlalchemy.

SuperBo avatar SuperBo commented on July 18, 2024

hello @matea16 , new update, the problem comes from the remaining file. In that file, I put timestamp format as follwing:

2024-01-04T03:48:11.336Z

from gqlalchemy.

matea16 avatar matea16 commented on July 18, 2024

that format is unfortunately not supported since timezones are not supported, does it work without the timezone at the end?

from gqlalchemy.

SuperBo avatar SuperBo commented on July 18, 2024

I removed the last "Z" and the same error still occurs. However, when I remove the microseconds part, it works.

from gqlalchemy.

matea16 avatar matea16 commented on July 18, 2024

I'm glad you were able to find a workaround. The issue is indeed the format of the data field. Memgraph doesn't support timezones and milliseconds and that was causing a problem. In our docs you can see all of the supported temporal types. Thank you again for reporting this, we have two issues that I linked above related to the time zones and this helps us to prioritize them.

from gqlalchemy.

katarinasupe avatar katarinasupe commented on July 18, 2024

I will close this issue since it was related to how Memgraph handles time format.

from gqlalchemy.

katarinasupe avatar katarinasupe commented on July 18, 2024

Zoned datetime has been added to Memgraph, but in order for it to work properly in GQLAlchemy, I think datetime keyword should still be added to the GQLAlchemy in order for OGM to work properly.

from gqlalchemy.

katarinasupe avatar katarinasupe commented on July 18, 2024

@matea16 I set a new milestone for GQLAlchemy. Will you be able to implement this until July 3rd?

from gqlalchemy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.