Comments (17)
Thank you Memgraph team, you rocks 👍
from gqlalchemy.
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.
Yes, I'll make sure to have it ready by July 3rd
from gqlalchemy.
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.
@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.
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.
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.
@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.
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.
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.
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.
that format is unfortunately not supported since timezones are not supported, does it work without the timezone at the end?
from gqlalchemy.
I removed the last "Z" and the same error still occurs. However, when I remove the microseconds part, it works.
from gqlalchemy.
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.
I will close this issue since it was related to how Memgraph handles time format.
from gqlalchemy.
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.
@matea16 I set a new milestone for GQLAlchemy. Will you be able to implement this until July 3rd?
from gqlalchemy.
Related Issues (20)
- Add SHOW BUILD INFO query to query builder
- Keep MAGE procedures up to date HOT 1
- Upgrade to pydantic v2 HOT 10
- Migrate docs from Memgraph docs repo to GQLAlchemy repo
- [BUG] Inclusion of the docker dependency bring in pywin32 which has an outstanding vulnerability HOT 1
- [BUG] Relax neo4j dependency version
- Expand LOAD CSV with remote CSV location HOT 2
- [BUG] Missing Cypher operators HOT 2
- Markdown lists in the documentation are not always rendered in the correct way
- [BUG] : undefined symbol: `EVP_PKEY_base_id` (in `mgclient.cpython-39-x86_64-linux-gnu.so`) HOT 19
- Missing documentation section on execute() HOT 1
- GQLAlchemy can't be installed on Windows with Python 3.11 HOT 2
- Propagate autocommit flag from pymgclient to gqlalchemy
- Support: Confusion over usage of `Field` class HOT 8
- Add IS NOT NULL to query builder
- undefined symbol: SSL_get1_peer_certificate HOT 6
- Pydantic version HOT 11
- Docs needed for connecting to Memgraph from gqlalchemy HOT 1
- [Feature Request] Please allow add edge properties in Loaders HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gqlalchemy.