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
dd7eb14e
Commit
dd7eb14e
authored
7 years ago
by
apoorvnaik
Committed by
Madhan Neethiraj
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2184: fixed isNull/notNull in-memory predicates to handle empty value
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
fe05e157
master
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
SearchProcessor.java
...main/java/org/apache/atlas/discovery/SearchProcessor.java
+9
-9
No files found.
repository/src/main/java/org/apache/atlas/discovery/SearchProcessor.java
View file @
dd7eb14e
...
...
@@ -467,40 +467,40 @@ public abstract class SearchProcessor {
break
;
case
AtlasBaseTypeDef
.
ATLAS_TYPE_SHORT
:
attrClass
=
Short
.
class
;
attrValue
=
attrVal
==
null
?
null
:
Short
.
parseShort
(
attrVal
);
attrValue
=
StringUtils
.
isEmpty
(
attrVal
)
?
null
:
Short
.
parseShort
(
attrVal
);
break
;
case
AtlasBaseTypeDef
.
ATLAS_TYPE_INT
:
attrClass
=
Integer
.
class
;
attrValue
=
attrVal
==
null
?
null
:
Integer
.
parseInt
(
attrVal
);
attrValue
=
StringUtils
.
isEmpty
(
attrVal
)
?
null
:
Integer
.
parseInt
(
attrVal
);
break
;
case
AtlasBaseTypeDef
.
ATLAS_TYPE_BIGINTEGER
:
attrClass
=
BigInteger
.
class
;
attrValue
=
attrVal
==
null
?
null
:
new
BigInteger
(
attrVal
);
attrValue
=
StringUtils
.
isEmpty
(
attrVal
)
?
null
:
new
BigInteger
(
attrVal
);
break
;
case
AtlasBaseTypeDef
.
ATLAS_TYPE_BOOLEAN
:
attrClass
=
Boolean
.
class
;
attrValue
=
attrVal
==
null
?
null
:
Boolean
.
parseBoolean
(
attrVal
);
attrValue
=
StringUtils
.
isEmpty
(
attrVal
)
?
null
:
Boolean
.
parseBoolean
(
attrVal
);
break
;
case
AtlasBaseTypeDef
.
ATLAS_TYPE_BYTE
:
attrClass
=
Byte
.
class
;
attrValue
=
attrVal
==
null
?
null
:
Byte
.
parseByte
(
attrVal
);
attrValue
=
StringUtils
.
isEmpty
(
attrVal
)
?
null
:
Byte
.
parseByte
(
attrVal
);
break
;
case
AtlasBaseTypeDef
.
ATLAS_TYPE_LONG
:
case
AtlasBaseTypeDef
.
ATLAS_TYPE_DATE
:
attrClass
=
Long
.
class
;
attrValue
=
attrVal
==
null
?
null
:
Long
.
parseLong
(
attrVal
);
attrValue
=
StringUtils
.
isEmpty
(
attrVal
)
?
null
:
Long
.
parseLong
(
attrVal
);
break
;
case
AtlasBaseTypeDef
.
ATLAS_TYPE_FLOAT
:
attrClass
=
Float
.
class
;
attrValue
=
attrVal
==
null
?
null
:
Float
.
parseFloat
(
attrVal
);
attrValue
=
StringUtils
.
isEmpty
(
attrVal
)
?
null
:
Float
.
parseFloat
(
attrVal
);
break
;
case
AtlasBaseTypeDef
.
ATLAS_TYPE_DOUBLE
:
attrClass
=
Double
.
class
;
attrValue
=
attrVal
==
null
?
null
:
Double
.
parseDouble
(
attrVal
);
attrValue
=
StringUtils
.
isEmpty
(
attrVal
)
?
null
:
Double
.
parseDouble
(
attrVal
);
break
;
case
AtlasBaseTypeDef
.
ATLAS_TYPE_BIGDECIMAL
:
attrClass
=
BigDecimal
.
class
;
attrValue
=
attrVal
==
null
?
null
:
new
BigDecimal
(
attrVal
);
attrValue
=
StringUtils
.
isEmpty
(
attrVal
)
?
null
:
new
BigDecimal
(
attrVal
);
break
;
default
:
if
(
attrType
instanceof
AtlasEnumType
)
{
...
...
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