Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
71e0e09b
Commit
71e0e09b
authored
8 years ago
by
Shwetha GS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1155 Errors in Eclipse when I bring in the latest code (davidrad via shwethags)
parent
c1081a49
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
release-log.txt
release-log.txt
+1
-0
GraphBackedDiscoveryService.java
...he/atlas/discovery/graph/GraphBackedDiscoveryService.java
+1
-2
GremlinEvaluator.scala
.../main/scala/org/apache/atlas/query/GremlinEvaluator.scala
+4
-0
GraphBackedMetadataRepositoryTest.java
...s/repository/graph/GraphBackedMetadataRepositoryTest.java
+1
-1
No files found.
release-log.txt
View file @
71e0e09b
...
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
ATLAS-1155 Errors in Eclipse when I bring in the latest code (davidrad via shwethags)
ATLAS-1098 Atlas allows creation of tag with name "isa" which causes exceptions during search (apoorvnaik via shwethags)
ATLAS-1142 Lineage UI Improvement (kevalbhatt via shwethags)
ATLAS-712 Support getTrait() API (svimal2106 via shwethags)
...
...
This diff is collapsed.
Click to expand it.
repository/src/main/java/org/apache/atlas/discovery/graph/GraphBackedDiscoveryService.java
View file @
71e0e09b
...
...
@@ -150,8 +150,7 @@ public class GraphBackedDiscoveryService implements DiscoveryService {
//If the final limit is 0, don't launch the query, return with 0 rows
if
(
validatedExpression
instanceof
Expressions
.
LimitExpression
&&
((
Integer
)((
Expressions
.
LimitExpression
)
validatedExpression
).
limit
().
rawValue
())
==
0
)
{
return
new
GremlinQueryResult
(
dslQuery
,
validatedExpression
.
dataType
(),
scala
.
collection
.
immutable
.
List
.
empty
());
return
new
GremlinQueryResult
(
dslQuery
,
validatedExpression
.
dataType
());
}
GremlinQuery
gremlinQuery
=
new
GremlinTranslator
(
validatedExpression
,
graphPersistenceStrategy
).
translate
();
...
...
This diff is collapsed.
Click to expand it.
repository/src/main/scala/org/apache/atlas/query/GremlinEvaluator.scala
View file @
71e0e09b
...
...
@@ -33,6 +33,10 @@ import org.apache.atlas.query.Expressions._
case
class
GremlinQueryResult
(
query
:
String
,
resultDataType
:
IDataType
[
_
],
rows
:
List
[
_
])
{
def
this
(
query
:
String
,
resultDataType
:
IDataType
[
_
])
{
this
(
query
,
resultDataType
,
List
.
empty
)
}
def
toJson
=
JsonHelper
.
toJson
(
this
)
}
...
...
This diff is collapsed.
Click to expand it.
repository/src/test/java/org/apache/atlas/repository/graph/GraphBackedMetadataRepositoryTest.java
View file @
71e0e09b
...
...
@@ -188,7 +188,7 @@ public class GraphBackedMetadataRepositoryTest {
private
boolean
assertEdge
(
String
id
,
String
typeName
)
throws
Exception
{
TitanGraph
graph
=
graphProvider
.
get
();
Vertex
vertex
=
graph
.
query
().
has
(
Constants
.
GUID_PROPERTY_KEY
,
id
).
vertices
().
iterator
().
next
();
Vertex
vertex
=
(
Vertex
)
graph
.
query
().
has
(
Constants
.
GUID_PROPERTY_KEY
,
id
).
vertices
().
iterator
().
next
();
Iterable
<
Edge
>
edges
=
vertex
.
getEdges
(
Direction
.
OUT
,
Constants
.
INTERNAL_PROPERTY_KEY_PREFIX
+
typeName
+
".ref"
);
if
(!
edges
.
iterator
().
hasNext
())
{
ITypedReferenceableInstance
entity
=
repositoryService
.
getEntityDefinition
(
id
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment