Comments (6)
I believe the MRE (minimal reproducible example) is:
mysql> drop table if exists j; create table j; drop table if exists j2; create table j2(s string); insert into j values(1); insert into j2 values(1, 'a'); select * from j left join j2 on j2.id = j.id and j2.s='a';
--------------
drop table if exists j
--------------
Query OK, 0 rows affected (0.01 sec)
--------------
create table j
--------------
Query OK, 0 rows affected (0.00 sec)
--------------
drop table if exists j2
--------------
Query OK, 0 rows affected (0.00 sec)
--------------
create table j2(s string)
--------------
Query OK, 0 rows affected (0.01 sec)
--------------
insert into j values(1)
--------------
Query OK, 1 row affected (0.00 sec)
--------------
insert into j2 values(1, 'a')
--------------
Query OK, 1 row affected (0.00 sec)
--------------
select * from j left join j2 on j2.id = j.id and j2.s='a'
--------------
ERROR 1064 (42000): P01: syntax error, unexpected string near ''a''
from manticoresearch.
We are good @mitsh . Thank you.
from manticoresearch.
could you provide MRE or upload your config along with indexes there this error pops up?
As this query should work fine.
from manticoresearch.
I don't get it whats MRE stands for (beside Meal Ready to Eat :D). here is the create statement of the tables;
CREATE TABLE `programs`(
`id` bigint, `p_name` string attribute indexed,
`p_version` string attribute indexed,
`p_versions` int, `p_publisher` string,
`p_homepage` string, `p_seo` string attribute indexed,
`p_license` string, `p_os` string,
`p_req` string, `p_kats` bigint, `m_p_kats` bigint,
`p_size` string, `p_url` string, `p_rurl` string,
`p_hit` int, `p_rates` int, `p_ok` int,
`p_icon` int, `editor_add_id` int,
`editor_id` int, `editor_status` int,
`editor_date` timestamp, `p_up_kats` int,
`m_p_up_kats` int, `p_up_kat_seo` string attribute indexed,
`p_kat_seo` string attribute indexed,
`pimage` int, `p_screenshots` int,
`google_pr` int, `x_ok` int
)
docstore_block_size = '32K'
attr_update_reserve = '256K'
inplace_enable = '1'
min_prefix_len = '1'
min_infix_len = '3'
index_exact_words = '1'
dict = 'keywords'
expand_keywords = 'star,exact'
stopwords = '/usr/share/manticore/stopwords/en'
html_strip = '1'
index_sp = '1'
morphology = 'libstemmer_en'
CREATE TABLE `program_infos`(
`id` bigint, `lang` string attribute indexed,
`p_sdesc` text, `p_desc` text, `p_tags` string attribute indexed,
`p_keywords` string attribute indexed,
`seo_title` string attribute indexed,
`seo_keywords` string attribute indexed,
`seo_description` string attribute indexed
)
docstore_block_size = '32K'
attr_update_reserve = '256K'
inplace_enable = '1'
min_prefix_len = '1'
min_infix_len = '3'
index_exact_words = '1'
dict = 'keywords'
expand_keywords = 'star,exact'
stopwords = '/usr/share/manticore/stopwords/en'
html_strip = '1'
index_sp = '1'
morphology = 'libstemmer_en'
now, I am going to delete all the datas and import with new create statements. maybe it'll work this. let you know.
if you need more information, just let me know.
from manticoresearch.
thanks for the explanation. your example looks like same as mine. if you still want me to create MRE, I can do it later.
from manticoresearch.
We've discussed it internally and it looks like there's no difference in terms of results for the user between AND
inside ON
and in the WHERE clause.
@mitsh what do you think?
from manticoresearch.
Related Issues (20)
- Crash on inserting null value for numeric fields in Elastic-like bulk request HOT 2
- SHOW CREATE TABLE doesn't support secondary_index='1' HOT 1
- Using expression returns a wrong value for a joined table HOT 2
- Ability to apply lcs to multiple-matches query via API HOT 2
- query_log_commands support for HTTP interface and errors
- refactor net buffer code to not allocate max_packet_size buffer HOT 2
- IDF boosters in HTTP requests with match HOT 3
- Incorrect Size Handling for bigint Type via SQL and HTTP HOT 2
- Secondary indexes vs exclude filters and pseudo_sharding=1
- manticore_new_cluster broken HOT 2
- Add missing endpoints to OpenAPI documentetion
- Stopwords behave incorrectly with ngram HOT 1
- "unable to write to binlog: : write error: Bad file descriptor" with binlog_common = 1
- Write throughput degradation in 6.3.3 HOT 1
- Feature request: ALTER TABLE RENAME COLUMN
- sql_attr_multi query causes "Aborted connection" warning with MariaDB HOT 1
- Doc: Add Superset integration section
- Rebuild JSON SI on ALTER REBUILD SECONDARY
- KT-Elastic integration : Search result json schema issue HOT 2
- any + for x + json can't handle greater than on equal 2^15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manticoresearch.