[atlas] branch master updated: ATLAS-4341 : Regression: DSL query with like operator and regex expression does not work

2021-06-22 Thread pinal
This is an automated email from the ASF dual-hosted git repository.

pinal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
 new 01082f1  ATLAS-4341 : Regression: DSL query with like operator and 
regex expression does not work
01082f1 is described below

commit 01082f1ea84d8c98cf4b7efc5bc88e0c71404e3f
Author: Pinal 
AuthorDate: Tue Jun 22 22:33:42 2021 +0530

ATLAS-4341 : Regression: DSL query with like operator and regex expression 
does not work

Signed-off-by: Pinal 
---
 repository/src/main/java/org/apache/atlas/query/IdentifierHelper.java   | 2 +-
 repository/src/test/java/org/apache/atlas/query/DSLQueriesTest.java | 1 +
 .../src/test/java/org/apache/atlas/query/GremlinQueryComposerTest.java  | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/repository/src/main/java/org/apache/atlas/query/IdentifierHelper.java 
b/repository/src/main/java/org/apache/atlas/query/IdentifierHelper.java
index fa2217b..1a6b376 100644
--- a/repository/src/main/java/org/apache/atlas/query/IdentifierHelper.java
+++ b/repository/src/main/java/org/apache/atlas/query/IdentifierHelper.java
@@ -38,7 +38,7 @@ public class IdentifierHelper {
 private static final Pattern SINGLE_QUOTED_IDENTIFIER   = 
Pattern.compile("'(\\w[\\w\\d\\.\\s]*)'");
 private static final Pattern DOUBLE_QUOTED_IDENTIFIER   = 
Pattern.compile("\"(\\w[\\w\\d\\.\\s]*)\"");
 private static final Pattern BACKTICK_QUOTED_IDENTIFIER = 
Pattern.compile("`(\\w[\\w\\d\\.\\s]*)`");
-private static final Character[]ESCAPE_CHARS   = new 
Character[] {'+', '@', '#', '&', '|', '(', ')', '{', '}', '[', ']', '~', '\\', 
'/'};
+private static final Character[]ESCAPE_CHARS  = new 
Character[] {'@', '#', '&', '~', '/'};
 private static final Set ESCAPE_CHARACTERS_SET = new 
HashSet<>(Arrays.asList(ESCAPE_CHARS));
 
 public static String get(String quotedIdentifier) {
diff --git 
a/repository/src/test/java/org/apache/atlas/query/DSLQueriesTest.java 
b/repository/src/test/java/org/apache/atlas/query/DSLQueriesTest.java
index 83d273f..74cc4e0 100644
--- a/repository/src/test/java/org/apache/atlas/query/DSLQueriesTest.java
+++ b/repository/src/test/java/org/apache/atlas/query/DSLQueriesTest.java
@@ -594,6 +594,7 @@ public class DSLQueriesTest extends BasicTestSetup {
 //TEXT Mapping
 {"hive_db where description like \"*/warehouse/*\"", 3, new 
ListValidator("Sales","Reporting","Logging")},
 {"hive_db where description like \"/apps/warehouse/*\"", 3, 
new ListValidator("Sales","Reporting","Logging")},
+{"hive_table where name like \"table[0-2]\"", 2, new 
ListValidator("table1", "table2")},
 };
 }
 
diff --git 
a/repository/src/test/java/org/apache/atlas/query/GremlinQueryComposerTest.java 
b/repository/src/test/java/org/apache/atlas/query/GremlinQueryComposerTest.java
index 7885712..52cb68c 100644
--- 
a/repository/src/test/java/org/apache/atlas/query/GremlinQueryComposerTest.java
+++ 
b/repository/src/test/java/org/apache/atlas/query/GremlinQueryComposerTest.java
@@ -214,6 +214,7 @@ public class GremlinQueryComposerTest {
 verify( "Table where owner like \"Jane/*\"", "g.V().has('__typeName', 
'Table').has('Table.owner', 
org.janusgraph.core.attribute.Text.textRegex(\"Jane\\/.*\")).dedup().limit(25).toList()");
 verify( "Table where Asset.name like \"/sales_*\"", 
"g.V().has('__typeName', 'Table').has('Asset.__s_name', 
org.janusgraph.core.attribute.Text.textRegex(\"\\/sales_.*\")).dedup().limit(25).toList()");
 verify( "Table where Asset.name like \"sales:*\"", 
"g.V().has('__typeName', 'Table').has('Asset.__s_name', 
org.janusgraph.core.attribute.Text.textRegex(\"sales:.*\")).dedup().limit(25).toList()");
+verify( "Table where Asset.name like \"table[0-9]\"", 
"g.V().has('__typeName', 'Table').has('Asset.__s_name', 
org.janusgraph.core.attribute.Text.textRegex(\"table[0-9]\")).dedup().limit(25).toList()");
 }
 
 @Test


[atlas] branch branch-2.0 updated: ATLAS-4341 : Regression: DSL query with like operator and regex expression does not work

2021-06-22 Thread pinal
This is an automated email from the ASF dual-hosted git repository.

pinal pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
 new 357d9e3  ATLAS-4341 : Regression: DSL query with like operator and 
regex expression does not work
357d9e3 is described below

commit 357d9e36937789c8a4131288988d3032dcc578c8
Author: Pinal 
AuthorDate: Tue Jun 22 22:33:42 2021 +0530

ATLAS-4341 : Regression: DSL query with like operator and regex expression 
does not work

Signed-off-by: Pinal 
---
 repository/src/main/java/org/apache/atlas/query/IdentifierHelper.java   | 2 +-
 repository/src/test/java/org/apache/atlas/query/DSLQueriesTest.java | 1 +
 .../src/test/java/org/apache/atlas/query/GremlinQueryComposerTest.java  | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/repository/src/main/java/org/apache/atlas/query/IdentifierHelper.java 
b/repository/src/main/java/org/apache/atlas/query/IdentifierHelper.java
index fa2217b..1a6b376 100644
--- a/repository/src/main/java/org/apache/atlas/query/IdentifierHelper.java
+++ b/repository/src/main/java/org/apache/atlas/query/IdentifierHelper.java
@@ -38,7 +38,7 @@ public class IdentifierHelper {
 private static final Pattern SINGLE_QUOTED_IDENTIFIER   = 
Pattern.compile("'(\\w[\\w\\d\\.\\s]*)'");
 private static final Pattern DOUBLE_QUOTED_IDENTIFIER   = 
Pattern.compile("\"(\\w[\\w\\d\\.\\s]*)\"");
 private static final Pattern BACKTICK_QUOTED_IDENTIFIER = 
Pattern.compile("`(\\w[\\w\\d\\.\\s]*)`");
-private static final Character[]ESCAPE_CHARS   = new 
Character[] {'+', '@', '#', '&', '|', '(', ')', '{', '}', '[', ']', '~', '\\', 
'/'};
+private static final Character[]ESCAPE_CHARS  = new 
Character[] {'@', '#', '&', '~', '/'};
 private static final Set ESCAPE_CHARACTERS_SET = new 
HashSet<>(Arrays.asList(ESCAPE_CHARS));
 
 public static String get(String quotedIdentifier) {
diff --git 
a/repository/src/test/java/org/apache/atlas/query/DSLQueriesTest.java 
b/repository/src/test/java/org/apache/atlas/query/DSLQueriesTest.java
index 83d273f..74cc4e0 100644
--- a/repository/src/test/java/org/apache/atlas/query/DSLQueriesTest.java
+++ b/repository/src/test/java/org/apache/atlas/query/DSLQueriesTest.java
@@ -594,6 +594,7 @@ public class DSLQueriesTest extends BasicTestSetup {
 //TEXT Mapping
 {"hive_db where description like \"*/warehouse/*\"", 3, new 
ListValidator("Sales","Reporting","Logging")},
 {"hive_db where description like \"/apps/warehouse/*\"", 3, 
new ListValidator("Sales","Reporting","Logging")},
+{"hive_table where name like \"table[0-2]\"", 2, new 
ListValidator("table1", "table2")},
 };
 }
 
diff --git 
a/repository/src/test/java/org/apache/atlas/query/GremlinQueryComposerTest.java 
b/repository/src/test/java/org/apache/atlas/query/GremlinQueryComposerTest.java
index 7885712..52cb68c 100644
--- 
a/repository/src/test/java/org/apache/atlas/query/GremlinQueryComposerTest.java
+++ 
b/repository/src/test/java/org/apache/atlas/query/GremlinQueryComposerTest.java
@@ -214,6 +214,7 @@ public class GremlinQueryComposerTest {
 verify( "Table where owner like \"Jane/*\"", "g.V().has('__typeName', 
'Table').has('Table.owner', 
org.janusgraph.core.attribute.Text.textRegex(\"Jane\\/.*\")).dedup().limit(25).toList()");
 verify( "Table where Asset.name like \"/sales_*\"", 
"g.V().has('__typeName', 'Table').has('Asset.__s_name', 
org.janusgraph.core.attribute.Text.textRegex(\"\\/sales_.*\")).dedup().limit(25).toList()");
 verify( "Table where Asset.name like \"sales:*\"", 
"g.V().has('__typeName', 'Table').has('Asset.__s_name', 
org.janusgraph.core.attribute.Text.textRegex(\"sales:.*\")).dedup().limit(25).toList()");
+verify( "Table where Asset.name like \"table[0-9]\"", 
"g.V().has('__typeName', 'Table').has('Asset.__s_name', 
org.janusgraph.core.attribute.Text.textRegex(\"table[0-9]\")).dedup().limit(25).toList()");
 }
 
 @Test


[atlas] 02/02: ATLAS-4317 : Upgrade curator jar version to 4.3.0

2021-06-22 Thread nixon
This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit f694d4d078ad878069132d4e5018348ae96743b0
Author: chaitali borole 
AuthorDate: Tue Jun 1 15:03:52 2021 +0530

ATLAS-4317 : Upgrade curator jar version to 4.3.0

(cherry picked from commit fa07f535f2b1f9315e8a7b75d9744c22fb9f)
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 0b7ca20..f23d13c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -683,7 +683,7 @@
 2.6
 1.1.3
 1.6
-4.0.1
+4.3.0
 1.8
 3.2.2
 6.8.3


[atlas] branch branch-2.0 updated (b5622af -> f694d4d)

2021-06-22 Thread nixon
This is an automated email from the ASF dual-hosted git repository.

nixon pushed a change to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git.


from b5622af  ATLAS-3923 : fix NullPointException in 
HBaseBasedAuditRepository.listEventsV2 (#108)
 new 3a401b9  ATLAS-4316:UI: When lineage contains shell entities, the 
image couldn't be downloaded.
 new f694d4d  ATLAS-4317 : Upgrade curator jar version to 4.3.0

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 dashboardv2/public/img/entity-icon/hourglass.svg   | 3 +++
 dashboardv2/public/js/external_lib/atlas-lineage/dist/index.js | 2 +-
 dashboardv3/public/img/entity-icon/hourglass.svg   | 3 +++
 dashboardv3/public/js/external_lib/atlas-lineage/dist/index.js | 2 +-
 pom.xml| 3 ++-
 5 files changed, 10 insertions(+), 3 deletions(-)
 create mode 100644 dashboardv2/public/img/entity-icon/hourglass.svg
 create mode 100644 dashboardv3/public/img/entity-icon/hourglass.svg


[atlas] 01/02: ATLAS-4316:UI: When lineage contains shell entities, the image couldn't be downloaded.

2021-06-22 Thread nixon
This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit 3a401b92c048aca600372a9ebc1e5f387cb9110d
Author: prasad pawar 
AuthorDate: Tue Jun 22 11:34:02 2021 +0530

ATLAS-4316:UI: When lineage contains shell entities, the image couldn't be 
downloaded.

Signed-off-by: nixonrodrigues 
(cherry picked from commit 244c5d519432754841709687aa008e544822dae3)
---
 dashboardv2/public/img/entity-icon/hourglass.svg   | 3 +++
 dashboardv2/public/js/external_lib/atlas-lineage/dist/index.js | 2 +-
 dashboardv3/public/img/entity-icon/hourglass.svg   | 3 +++
 dashboardv3/public/js/external_lib/atlas-lineage/dist/index.js | 2 +-
 pom.xml| 1 +
 5 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dashboardv2/public/img/entity-icon/hourglass.svg 
b/dashboardv2/public/img/entity-icon/hourglass.svg
new file mode 100644
index 000..aad4978
--- /dev/null
+++ b/dashboardv2/public/img/entity-icon/hourglass.svg
@@ -0,0 +1,3 @@
+http://www.w3.org/2000/svg;>
+http://www.w3.org/2000/svg;>
+
 **/docz-lib/**
 **/.docz/**
+**/*.svg
 
 
 


[atlas] branch master updated (b032339 -> fa04444)

2021-06-22 Thread nixon
This is an automated email from the ASF dual-hosted git repository.

nixon pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git.


from b032339  ATLAS-3923 : fix NullPointException in 
HBaseBasedAuditRepository.listEventsV2 (#108)
 new 244c5d5  ATLAS-4316:UI: When lineage contains shell entities, the 
image couldn't be downloaded.
 new fa0  ATLAS-4317 : Upgrade curator jar version to 4.3.0

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 dashboardv2/public/img/entity-icon/hourglass.svg   | 3 +++
 dashboardv2/public/js/external_lib/atlas-lineage/dist/index.js | 2 +-
 dashboardv3/public/img/entity-icon/hourglass.svg   | 3 +++
 dashboardv3/public/js/external_lib/atlas-lineage/dist/index.js | 2 +-
 pom.xml| 3 ++-
 5 files changed, 10 insertions(+), 3 deletions(-)
 create mode 100644 dashboardv2/public/img/entity-icon/hourglass.svg
 create mode 100644 dashboardv3/public/img/entity-icon/hourglass.svg


[atlas] 02/02: ATLAS-4317 : Upgrade curator jar version to 4.3.0

2021-06-22 Thread nixon
This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit fa07f535f2b1f9315e8a7b75d9744c22fb9f
Author: chaitali borole 
AuthorDate: Tue Jun 1 15:03:52 2021 +0530

ATLAS-4317 : Upgrade curator jar version to 4.3.0
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index cae68dd..19db431 100644
--- a/pom.xml
+++ b/pom.xml
@@ -694,7 +694,7 @@
 2.6
 1.1.3
 1.6
-4.0.1
+4.3.0
 1.8
 3.2.2
 6.8.3


[atlas] 01/02: ATLAS-4316:UI: When lineage contains shell entities, the image couldn't be downloaded.

2021-06-22 Thread nixon
This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit 244c5d519432754841709687aa008e544822dae3
Author: prasad pawar 
AuthorDate: Tue Jun 22 11:34:02 2021 +0530

ATLAS-4316:UI: When lineage contains shell entities, the image couldn't be 
downloaded.

Signed-off-by: nixonrodrigues 
---
 dashboardv2/public/img/entity-icon/hourglass.svg   | 3 +++
 dashboardv2/public/js/external_lib/atlas-lineage/dist/index.js | 2 +-
 dashboardv3/public/img/entity-icon/hourglass.svg   | 3 +++
 dashboardv3/public/js/external_lib/atlas-lineage/dist/index.js | 2 +-
 pom.xml| 1 +
 5 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dashboardv2/public/img/entity-icon/hourglass.svg 
b/dashboardv2/public/img/entity-icon/hourglass.svg
new file mode 100644
index 000..aad4978
--- /dev/null
+++ b/dashboardv2/public/img/entity-icon/hourglass.svg
@@ -0,0 +1,3 @@
+http://www.w3.org/2000/svg;>
+http://www.w3.org/2000/svg;>
+
 **/docz-lib/**
 **/.docz/**
+**/*.svg