You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by se...@apache.org on 2020/12/25 09:07:06 UTC
[incubator-nlpcraft] branch master updated: SQL example schema
builder fix.
This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new 9c9950f SQL example schema builder fix.
9c9950f is described below
commit 9c9950f86192087eea5949ceb704f8f2ea5e52ec
Author: Sergey Kamov <se...@apache.org>
AuthorDate: Fri Dec 25 12:06:51 2020 +0300
SQL example schema builder fix.
---
.../main/scala/org/apache/nlpcraft/examples/sql/db/SqlBuilder.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/sql/db/SqlBuilder.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/sql/db/SqlBuilder.scala
index 6b56cac..6e10899 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/sql/db/SqlBuilder.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/sql/db/SqlBuilder.scala
@@ -469,8 +469,6 @@ case class SqlBuilder(schema: NCSqlSchema) extends LazyLogging {
tblsNorm = tblsNorm.distinct
- val extTbls = extendTables(tblsNorm)
-
if (freeDateColOpt.isEmpty && freeDateRangeOpt.isDefined) {
freeDateColOpt = findDateColumn(tblsNorm)
@@ -479,6 +477,8 @@ case class SqlBuilder(schema: NCSqlSchema) extends LazyLogging {
tblsNorm = tblsNorm.distinct
}
+ val extTbls = extendTables(tblsNorm)
+
colsNorm = colsNorm.distinct
condsNorm = condsNorm.distinct
sortsNorm = sortsNorm.distinct