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
03857baa
Commit
03857baa
authored
Jan 05, 2017
by
Suma Shivaprasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1277 Add feather use 'order by ' in the DSL search (zhangqiang2 via sumasai)
parent
6e5863e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
release-log.txt
release-log.txt
+1
-0
QueryParser.scala
...y/src/main/scala/org/apache/atlas/query/QueryParser.scala
+3
-1
ParserTest.scala
...ry/src/test/scala/org/apache/atlas/query/ParserTest.scala
+4
-0
No files found.
release-log.txt
View file @
03857baa
...
...
@@ -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-1277 Add feather use 'order by ' in the DSL search (zhangqiang2 via sumasai)
ATLAS-1379 Avoid object query overhead when report query selects class type alias (guptaneeru via dkantor)
ATLAS-1419 update entity-update API impl to preserve value of entity attribute when no value is provided
ATLAS-1346 Search API to return empty list/container object instead of exception (apoorvnaik via mneethiraj)
...
...
repository/src/main/scala/org/apache/atlas/query/QueryParser.scala
View file @
03857baa
...
...
@@ -73,6 +73,8 @@ trait QueryKeywords {
protected
val
MAX
=
Keyword
(
"max"
)
protected
val
MIN
=
Keyword
(
"min"
)
protected
val
SUM
=
Keyword
(
"sum"
)
protected
val
BY
=
Keyword
(
"by"
)
protected
val
ORDER
=
Keyword
(
"order"
)
}
trait
ExpressionUtils
{
...
...
@@ -270,7 +272,7 @@ object QueryParser extends StandardTokenParsers with QueryKeywords with Expressi
def
fromSrc
=
identifier
~
AS
~
alias
^^
{
case
s
~
a
~
al
=>
s
.
as
(
al
)}
|
identifier
def
orderby
=
ORDERBY
~
expr
~
opt
(
asce
)
^^
{
def
orderby
=
(
ORDERBY
|(
ORDER
~
BY
))
~
expr
~
opt
(
asce
)
^^
{
case
o
~
odr
~
None
=>
(
odr
,
true
)
case
o
~
odr
~
asc
=>
(
odr
,
asc
.
get
)
}
...
...
repository/src/test/scala/org/apache/atlas/query/ParserTest.scala
View file @
03857baa
...
...
@@ -92,4 +92,8 @@ class ParserTest extends BaseTest {
)
}
@Test
def
testorder_by
:
Unit
=
{
println
(
QueryParser
.
apply
(
"from DB order by columnA"
).
right
.
get
.
toString
)
}
}
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