[jira] [Commented] (TINKERPOP-3035) Add explicit property(IDictionary) for .NET

2024-04-17 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/TINKERPOP-3035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17838187#comment-17838187
 ] 

ASF GitHub Bot commented on TINKERPOP-3035:
---

FlorianHockmann opened a new pull request, #2565:
URL: https://github.com/apache/tinkerpop/pull/2565

   https://issues.apache.org/jira/browse/TINKERPOP-3035
   
   VOTE +1




> Add explicit property(IDictionary) for .NET
> ---
>
> Key: TINKERPOP-3035
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3035
> Project: TinkerPop
>  Issue Type: Bug
>  Components: dotnet
>Affects Versions: 3.6.6
>Reporter: Stephen Mallette
>Priority: Minor
>
> There is no {{property(IDictionary)}} method for .NET to 
> accompany the {{property(Map)}} step. It works because it probably piggybacks 
> on {{property(object?, object?, objects[]?)}} which has all nullable 
> arguments. The explicit overload with the {{IDictionary}} should be added.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (TINKERPOP-2987) "Has (Traversal Step)" and datetime() function

2024-04-17 Thread Florian Hockmann (Jira)


[ 
https://issues.apache.org/jira/browse/TINKERPOP-2987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17838183#comment-17838183
 ] 

Florian Hockmann commented on TINKERPOP-2987:
-

Sorry for the late reply, I somehow didn't see this issue until now.

Did you try to use {{DateTimeOffset}} in .NET for this property key? 
Gremlin.Net should serialize {{DateTimeOffset}} so it can be used by the server 
(JanusGraph Server in your case) as a Java {{Date}} and deserialize a {{Date}} 
coming from the server as a {{DateTimeOffset}} in .Net.

For the Console: I think the usual behavior is that you need to use a {{Date}} 
object or the {{datetime()}} function which is just a convenience function to 
make working with dates easier. I guess it worked with just a {{string}} when 
you created the vertex as JanusGraph automatically converted it to a {{Date}} 
as it inferred the type from your schema.

> "Has (Traversal Step)" and datetime() function
> --
>
> Key: TINKERPOP-2987
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2987
> Project: TinkerPop
>  Issue Type: Bug
>  Components: console, dotnet
>Affects Versions: 3.5.5
> Environment: Windows 10
> TinkerPop 3.5.5
> JanusGraph 0.6.3
> Berkeley JE
>Reporter: Kensuke Ishihara
>Priority: Major
>  Labels: bug
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> I created a vertex which has a date property. (I defined a schema and enabled 
> schema constraints according to [Schema and Data Modeling - 
> JanusGraph|https://docs.janusgraph.org/schema/].)
>  
> When I wrote a query on Gremlin Console like below, it works. I mean, it is 
> not necessary to use datetime() function.
> g.V().has("labelName", "propertyName", "2018-04-01T00:00:00").valueMap()
>  
> But, if I accessed same vertex via another vertex, then I need datetime() 
> function.
> g.V().has("anotherLabelName", "anotherPropertyName", 
> "someValue").out().has("labelName", "propertyName", 
> datetime("2018-04-01T00:00:00")).valueMap()
> If I didn't use datetime(), no vertex is returned.
>  
> Same problem occurs on Gremlin.Net. In .Net, -.ToUniversalTime() method is 
> needed at latter case- I have not found a workaround.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)