issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
261k
issue_title
stringlengths
1
925
issue_comments_url
stringlengths
56
81
issue_comments_count
int64
0
2.5k
issue_created_at
stringlengths
20
20
issue_updated_at
stringlengths
20
20
issue_html_url
stringlengths
37
62
issue_github_id
int64
387k
2.46B
issue_number
int64
1
127k
[ "langchain-ai", "langchain" ]
calling an LLM can be expensive - would make sense to cache queries!
add caching for LLM calls
https://api.github.com/repos/langchain-ai/langchain/issues/263/comments
17
2022-12-05T15:37:59Z
2022-12-20T03:03:15Z
https://github.com/langchain-ai/langchain/issues/263
1,476,836,692
263
[ "langchain-ai", "langchain" ]
https://github.com/acheong08/ChatGPT or others
Add ChatGPT chain/API support
https://api.github.com/repos/langchain-ai/langchain/issues/258/comments
5
2022-12-04T21:45:50Z
2023-03-10T04:50:57Z
https://github.com/langchain-ai/langchain/issues/258
1,475,217,337
258
[ "langchain-ai", "langchain" ]
<img width="724" alt="image" src="https://user-images.githubusercontent.com/6690839/205323170-75c4e8e2-dbd1-4813-aee2-cb112e371dee.png">
docs for SemanticSimilarityExampleSelector & method signature don't match
https://api.github.com/repos/langchain-ai/langchain/issues/243/comments
0
2022-12-02T15:05:58Z
2022-12-03T22:48:43Z
https://github.com/langchain-ai/langchain/issues/243
1,473,011,785
243
[ "langchain-ai", "langchain" ]
I'm storing examples in both a vectorstore and a database. I would like to add the vectorstore id field to the database after the example has been successfully indexed. I think I could do this if add_texts in vectorstore could return a list of vectorstore IDs, and add_example in SemanticSimilarityExampleSelector propagated the returned ID back as well.
add_texts in VectorStore and add_example in SemanticSimilarityExampleSelector should return id
https://api.github.com/repos/langchain-ai/langchain/issues/238/comments
0
2022-12-01T22:46:45Z
2022-12-05T20:50:51Z
https://github.com/langchain-ai/langchain/issues/238
1,472,057,347
238
[ "langchain-ai", "langchain" ]
when initializing with a sql database, check to see if it already exists raise error if it does not
check if sql database exists when initializing
https://api.github.com/repos/langchain-ai/langchain/issues/237/comments
1
2022-12-01T17:58:11Z
2023-09-12T21:29:59Z
https://github.com/langchain-ai/langchain/issues/237
1,471,720,332
237
[ "langchain-ai", "langchain" ]
null
using poetry for dependency management?
https://api.github.com/repos/langchain-ai/langchain/issues/236/comments
2
2022-12-01T17:55:03Z
2022-12-04T19:17:46Z
https://github.com/langchain-ai/langchain/issues/236
1,471,717,027
236
[ "langchain-ai", "langchain" ]
I would like to use SequentialChain with the option to use a different LLM class at each step. The rationale behind this is that I am using different temperature settings for different prompts within my chain. I also potentially may use different models for each step in the future. a rough idea for config -- have a json dict specifying LLM config, and pass in a list of configs (or list of LLM objects) which is the same length as the number of prompttemplates in the chain if you want to use different objects per chain, or one LLM object or config object in the case where you want to use the same for all
Allow different LLM objects for each PromptTemplate in SequentialChain
https://api.github.com/repos/langchain-ai/langchain/issues/231/comments
2
2022-11-30T17:37:25Z
2022-12-01T22:46:58Z
https://github.com/langchain-ai/langchain/issues/231
1,469,999,237
231
[ "langchain-ai", "langchain" ]
Improved prompts for [harrison/combine_documents_chain](https://github.com/hwchase17/langchain/tree/harrison/combine_documents_chain) ``` """QUESTION_PROMPT is the prompt used in phase 1 where we run the LLM on each chunk of the doc.""" question_prompt_template = """Use the following portion of a legal contract to see if any of the text is relevant to answer the question. Return any relevant text verbatim. {context} Question: {question} Relevant text, if any:""" QUESTION_PROMPT = PromptTemplate( template=question_prompt_template, input_variables=["context", "question"] ) """ """ combine_prompt_template = """Given the following extracted parts of a contract and a question, create a final answer with references ("SOURCES"). If you don't know the answer, just say that you don't know. Don't try to make up an answer. ALWAYS return a "SOURCES" part in your answer. QUESTION: Which state/country's law governs the interpretation of the contract? ========= Content: This Agreement is governed by English law and the parties submit to the exclusive jurisdiction of the English courts in relation to any dispute (contractual or non-contractual) concerning this Agreement save that either party may apply to any court for an injunction or other relief to protect its Intellectual Property Rights. Source: 28-pl Content: No Waiver. Failure or delay in exercising any right or remedy under this Agreement shall not constitute a waiver of such (or any other) right or remedy.\n\n11.7 Severability. The invalidity, illegality or unenforceability of any term (or part of a term) of this Agreement shall not affect the continuation in force of the remainder of the term (if any) and this Agreement.\n\n11.8 No Agency. Except as expressly stated otherwise, nothing in this Agreement shall create an agency, partnership or joint venture of any kind between the parties.\n\n11.9 No Third-Party Beneficiaries. Source: 30-pl Content: (b) if Google believes, in good faith, that the Distributor has violated or caused Google to violate any Anti-Bribery Laws (as defined in Clause 8.5) or that such a violation is reasonably likely to occur, Source: 4-pl ========= FINAL ANSWER: This Agreement is governed by English law. SOURCES: 28-pl QUESTION: What did the president say about Michael Jackson? ========= Content: Madam Speaker, Madam Vice President, our First Lady and Second Gentleman. Members of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans. \n\nLast year COVID-19 kept us apart. This year we are finally together again. \n\nTonight, we meet as Democrats Republicans and Independents. But most importantly as Americans. \n\nWith a duty to one another to the American people to the Constitution. \n\nAnd with an unwavering resolve that freedom will always triumph over tyranny. \n\nSix days ago, Russia’s Vladimir Putin sought to shake the foundations of the free world thinking he could make it bend to his menacing ways. But he badly miscalculated. \n\nHe thought he could roll into Ukraine and the world would roll over. Instead he met a wall of strength he never imagined. \n\nHe met the Ukrainian people. \n\nFrom President Zelenskyy to every Ukrainian, their fearlessness, their courage, their determination, inspires the world. \n\nGroups of citizens blocking tanks with their bodies. Everyone from students to retirees teachers turned soldiers defending their homeland. Source: 0-pl Content: And we won’t stop. \n\nWe have lost so much to COVID-19. Time with one another. And worst of all, so much loss of life. \n\nLet’s use this moment to reset. Let’s stop looking at COVID-19 as a partisan dividing line and see it for what it is: A God-awful disease. \n\nLet’s stop seeing each other as enemies, and start seeing each other for who we really are: Fellow Americans. \n\nWe can’t change how divided we’ve been. But we can change how we move forward—on COVID-19 and other issues we must face together. \n\nI recently visited the New York City Police Department days after the funerals of Officer Wilbert Mora and his partner, Officer Jason Rivera. \n\nThey were responding to a 9-1-1 call when a man shot and killed them with a stolen gun. \n\nOfficer Mora was 27 years old. \n\nOfficer Rivera was 22. \n\nBoth Dominican Americans who’d grown up on the same streets they later chose to patrol as police officers. \n\nI spoke with their families and told them that we are forever in debt for their sacrifice, and we will carry on their mission to restore the trust and safety every community deserves. Source: 24-pl Content: And a proud Ukrainian people, who have known 30 years of independence, have repeatedly shown that they will not tolerate anyone who tries to take their country backwards. \n\nTo all Americans, I will be honest with you, as I’ve always promised. A Russian dictator, invading a foreign country, has costs around the world. \n\nAnd I’m taking robust action to make sure the pain of our sanctions is targeted at Russia’s economy. And I will use every tool at our disposal to protect American businesses and consumers. \n\nTonight, I can announce that the United States has worked with 30 other countries to release 60 Million barrels of oil from reserves around the world. \n\nAmerica will lead that effort, releasing 30 Million barrels from our own Strategic Petroleum Reserve. And we stand ready to do more if necessary, unified with our allies. \n\nThese steps will help blunt gas prices here at home. And I know the news about what’s happening can seem alarming. \n\nBut I want you to know that we are going to be okay. Source: 5-pl Content: More support for patients and families. \n\nTo get there, I call on Congress to fund ARPA-H, the Advanced Research Projects Agency for Health. \n\nIt’s based on DARPA—the Defense Department project that led to the Internet, GPS, and so much more. \n\nARPA-H will have a singular purpose—to drive breakthroughs in cancer, Alzheimer’s, diabetes, and more. \n\nA unity agenda for the nation. \n\nWe can do this. \n\nMy fellow Americans—tonight , we have gathered in a sacred space—the citadel of our democracy. \n\nIn this Capitol, generation after generation, Americans have debated great questions amid great strife, and have done great things. \n\nWe have fought for freedom, expanded liberty, defeated totalitarianism and terror. \n\nAnd built the strongest, freest, and most prosperous nation the world has ever known. \n\nNow is the hour. \n\nOur moment of responsibility. \n\nOur test of resolve and conscience, of history itself. \n\nIt is in this moment that our character is formed. Our purpose is found. Our future is forged. \n\nWell I know this nation. Source: 34-pl ========= FINAL ANSWER: The president did not mention Michael Jackson. SOURCES: QUESTION: {question} ========= {summaries} ========= FINAL ANSWER:""" COMBINE_PROMPT = PromptTemplate( template=combine_prompt_template, input_variables=["summaries", "question"] ) """COMBINE_DOCUMENT_PROMPT is fed into CombineDocumentsChain() at langchain/chains/combine_documents.py""" COMBINE_DOCUMENT_PROMPT = PromptTemplate( template="Content: {page_content}\nSource: {source}", input_variables=["page_content", "source"], ) ```
Prompts for harrison/combine_documents_chain
https://api.github.com/repos/langchain-ai/langchain/issues/230/comments
2
2022-11-30T17:35:43Z
2022-12-01T20:31:45Z
https://github.com/langchain-ai/langchain/issues/230
1,469,997,319
230
[ "langchain-ai", "langchain" ]
I would like to track versions of PromptTemplates through time. an optional version attribute would help with this.
Add optional version attribute to BasePromptTemplate
https://api.github.com/repos/langchain-ai/langchain/issues/229/comments
3
2022-11-30T17:33:18Z
2022-11-30T20:00:36Z
https://github.com/langchain-ai/langchain/issues/229
1,469,994,597
229
[ "langchain-ai", "langchain" ]
I want to save prompt templates in a JSONField in a django db. the current save() method on BasePromptTemplate outputs to a file rather than a json object. I'd prefer to have a method that loads the prompt to & from json, & I decide what to do with the JSON myself.
Serialize BasePromptTemplate to json rather than a file
https://api.github.com/repos/langchain-ai/langchain/issues/228/comments
1
2022-11-30T17:32:17Z
2022-11-30T20:00:21Z
https://github.com/langchain-ai/langchain/issues/228
1,469,993,469
228
[ "langchain-ai", "langchain" ]
For example this list of entities but also the conversation summary
Support multiple memory modules in a chain
https://api.github.com/repos/langchain-ai/langchain/issues/224/comments
2
2022-11-29T16:29:16Z
2023-09-18T16:25:21Z
https://github.com/langchain-ai/langchain/issues/224
1,468,351,009
224
[ "langchain-ai", "langchain" ]
Given: - Chain A generates N outputs, e.g. we get back the text and immediately split it into a list based on post-processing we control and expect. - Chain B should then run over each of those outputs from Chain A. Is there any way to do this elegantly in langchain? Perhaps some way to provide an output formatter to a chain, or some for_each pre- / post-processor? Or does this seem like just two independent chains with processing in between?
SequentialChain that runs next chain on each output of the prior chain?
https://api.github.com/repos/langchain-ai/langchain/issues/223/comments
3
2022-11-29T15:54:32Z
2022-12-11T22:22:54Z
https://github.com/langchain-ai/langchain/issues/223
1,468,297,308
223
[ "langchain-ai", "langchain" ]
Running some CRUD-like statements to an agent throws `ResourceClosedError: This result object does not return rows. It has been closed automatically.` From the implementation it appears that it always expects to see rows which are then cast to `str` and returned as part of the chain. What would the impact of modifying this behaviour be on the expected usecase for the SQL chain as it is? https://github.com/hwchase17/langchain/blob/261029cef3e7c30277027f5d5283b87197eab520/langchain/sql_database.py#L70-L71
SQLDatabaseChain expects only select statements
https://api.github.com/repos/langchain-ai/langchain/issues/213/comments
2
2022-11-28T11:45:25Z
2022-11-29T17:17:50Z
https://github.com/langchain-ai/langchain/issues/213
1,466,279,563
213
[ "langchain-ai", "langchain" ]
Sorry to disturb,I wonder if langchain could process a batch of prompts or it just process each text by calling llm(text)?
Is langchain able to process batch prompt?
https://api.github.com/repos/langchain-ai/langchain/issues/209/comments
5
2022-11-27T05:22:39Z
2023-09-10T16:47:22Z
https://github.com/langchain-ai/langchain/issues/209
1,465,336,559
209
[ "langchain-ai", "langchain" ]
null
improve search chain by letting it parse results from json directly
https://api.github.com/repos/langchain-ai/langchain/issues/204/comments
1
2022-11-26T15:14:18Z
2023-08-24T16:22:14Z
https://github.com/langchain-ai/langchain/issues/204
1,465,180,488
204
[ "langchain-ai", "langchain" ]
``` File "C:\ProgramData\Anaconda3\envs\LangChain\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 8: character maps to <undefined> ```
Unicode error on Windows
https://api.github.com/repos/langchain-ai/langchain/issues/200/comments
2
2022-11-26T13:54:28Z
2023-03-20T09:48:59Z
https://github.com/langchain-ai/langchain/issues/200
1,465,161,192
200
[ "langchain-ai", "langchain" ]
too few free trials, too expensive
New search chain that doesnt use serpapi
https://api.github.com/repos/langchain-ai/langchain/issues/199/comments
4
2022-11-26T13:52:11Z
2023-01-24T08:31:27Z
https://github.com/langchain-ai/langchain/issues/199
1,465,160,696
199
[ "langchain-ai", "langchain" ]
Is there a current API for hooking a conversational chain with an agent so, during the conversation, actions can be performed (e.g. db lookup etc)? If not, how would you see this working architecturally?
Combining Conversation Chain and Agents
https://api.github.com/repos/langchain-ai/langchain/issues/189/comments
4
2022-11-25T14:42:51Z
2022-11-27T21:05:18Z
https://github.com/langchain-ai/langchain/issues/189
1,464,640,819
189
[ "langchain-ai", "langchain" ]
Do you have a bibtex citation for this repo? e.g. something like the following (from https://github.com/bigscience-workshop/promptsource) ``` @misc{bach2022promptsource, title={PromptSource: An Integrated Development Environment and Repository for Natural Language Prompts}, author={Stephen H. Bach and Victor Sanh and Zheng-Xin Yong and Albert Webson and Colin Raffel and Nihal V. Nayak and Abheesht Sharma and Taewoon Kim and M Saiful Bari and Thibault Fevry and Zaid Alyafeai and Manan Dey and Andrea Santilli and Zhiqing Sun and Srulik Ben-David and Canwen Xu and Gunjan Chhablani and Han Wang and Jason Alan Fries and Maged S. Al-shaibani and Shanya Sharma and Urmish Thakker and Khalid Almubarak and Xiangru Tang and Xiangru Tang and Mike Tian-Jian Jiang and Alexander M. Rush}, year={2022}, eprint={2202.01279}, archivePrefix={arXiv}, primaryClass={cs.LG} } ```
Bibtex Citation
https://api.github.com/repos/langchain-ai/langchain/issues/188/comments
3
2022-11-25T05:08:29Z
2023-04-22T19:00:14Z
https://github.com/langchain-ai/langchain/issues/188
1,464,042,816
188
[ "langchain-ai", "langchain" ]
- [PAL: PROGRAM-AIDED LANGUAGE MODELS](https://arxiv.org/pdf/2211.10435.pdf) - [Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks](https://wenhuchen.github.io/images/Program_of_Thoughts.pdf)
Add Program of Thoughts Prompting or Program-Aided Language Model
https://api.github.com/repos/langchain-ai/langchain/issues/185/comments
0
2022-11-25T00:10:23Z
2022-12-03T16:43:15Z
https://github.com/langchain-ai/langchain/issues/185
1,463,900,699
185
[ "langchain-ai", "langchain" ]
null
Add docs for custom agents
https://api.github.com/repos/langchain-ai/langchain/issues/184/comments
0
2022-11-24T17:17:52Z
2022-11-26T14:49:27Z
https://github.com/langchain-ai/langchain/issues/184
1,463,638,512
184
[ "langchain-ai", "langchain" ]
null
Add docs for custom LLMs
https://api.github.com/repos/langchain-ai/langchain/issues/183/comments
0
2022-11-24T17:17:37Z
2022-11-26T14:49:27Z
https://github.com/langchain-ai/langchain/issues/183
1,463,638,301
183
[ "langchain-ai", "langchain" ]
Hi, is there any chance you could add support for the suffix parameter to the OpenAI class/call? [https://beta.openai.com/docs/api-reference/completions/create](https://beta.openai.com/docs/api-reference/completions/create) I could land this if you don't have the time, but it should be simple enough that you could land it faster than I could fork the repo and make a PR.
Add support for OpenAI Completion's Suffix Parameter
https://api.github.com/repos/langchain-ai/langchain/issues/181/comments
5
2022-11-24T02:04:44Z
2022-11-25T19:54:36Z
https://github.com/langchain-ai/langchain/issues/181
1,462,647,223
181
[ "langchain-ai", "langchain" ]
make the calls in the "map" part concurrently
parrallize the map/reduce chain
https://api.github.com/repos/langchain-ai/langchain/issues/176/comments
4
2022-11-23T05:48:18Z
2022-12-19T16:07:23Z
https://github.com/langchain-ai/langchain/issues/176
1,461,068,354
176
[ "langchain-ai", "langchain" ]
Hello, When running the "Map Reduce" [demo](https://langchain.readthedocs.io/en/latest/examples/demos/map%20reduce.html), I see the error below: ``` ImportError Traceback (most recent call last) Cell In [3], line 1 ----> 1 from langchain import OpenAI, PromptTemplate, LLMChain 2 from langchain.text_splitter import CharacterTextSplitter 3 from langchain.chains.mapreduce import MapReduceChain ImportError: cannot import name 'PromptTemplate' from 'langchain' (/Users/mteoh/projects/langchain_sandbox/.env/lib/python3.9/site-packages/langchain/__init__.py) ``` I see it defined here: https://github.com/hwchase17/langchain/blob/c02eb199b6587aeeb50fbb083693572bd2f030cc/langchain/prompts/prompt.py#L13 And mentioned here: https://github.com/hwchase17/langchain/blob/c02eb199b6587aeeb50fbb083693572bd2f030cc/langchain/__init__.py#L35 However, when grepping in the library directory, I do not find it: ``` :~/projects/langchain_sandbox/.env/lib/python3.9/site-packages/langchain $ grep -r PromptTemplate . ``` Relevant versions of my packages: ``` $ pip freeze | grep "langchain\|openai" langchain==0.0.16 openai==0.25.0 ``` Any advice? Thanks! Excited about this work.
Cannot import `PromptTemplate`
https://api.github.com/repos/langchain-ai/langchain/issues/160/comments
5
2022-11-20T08:41:13Z
2022-11-21T01:40:14Z
https://github.com/langchain-ai/langchain/issues/160
1,456,819,990
160
[ "langchain-ai", "langchain" ]
Current implementation OpenAI embeddings are hard coded to return only text embeddings via. GPT-3. For example, ```python def embed_documents(self, texts: List[str]) -> List[List[float]]: ... responses = [ self._embedding_func(text, engine=f"text-search-{self.model_name}-doc-001") for text in texts ] ``` ```python def embed_query(self, text: str) -> List[float]: ... embedding = self._embedding_func( text, engine=f"text-search-{self.model_name}-query-001" ) ``` However, recent literature on reasoning shows CODEX to be more powerful on reasoning tasks than GPT-3. `OpenAIEmbeddings` should be modified to support both text and code embeddings.
Support Codex embeddings
https://api.github.com/repos/langchain-ai/langchain/issues/137/comments
2
2022-11-14T16:37:52Z
2023-09-18T16:25:26Z
https://github.com/langchain-ai/langchain/issues/137
1,448,386,956
137
[ "langchain-ai", "langchain" ]
The current implementation of `HuggingFaceEmbeddings` local sentence-transformers to derive the encodings. This can be limiting as it requires a fairly capable machine to download the model, load it, and run inference. An alternative is to support embeddings derived directly via the HuggingFaceHub. See this [blog post](https://huggingface.co/blog/getting-started-with-embeddings) for details. This implementation will set similar expectations as Cohere and OpenAI embeddings API.
Support HuggingFaceHub embeddings endpoint
https://api.github.com/repos/langchain-ai/langchain/issues/136/comments
2
2022-11-14T16:32:02Z
2022-11-14T16:41:57Z
https://github.com/langchain-ai/langchain/issues/136
1,448,379,289
136
[ "langchain-ai", "langchain" ]
I remember doing this in the early versions, but since 0.10 I can't seem to `%env` in Jupyter notebook to pass API tokens (tested this only with HuggingFaceHub, btw). Passing it as an argument, however, works fine. Steps to reproduce: ![image](https://user-images.githubusercontent.com/347398/201581940-9620407f-36b2-44c5-b746-ca0ea7d84122.png)
0.13 does not pick up API token environment variable set in jupyter
https://api.github.com/repos/langchain-ai/langchain/issues/134/comments
2
2022-11-14T05:29:21Z
2022-11-14T16:34:26Z
https://github.com/langchain-ai/langchain/issues/134
1,447,417,239
134
[ "langchain-ai", "langchain" ]
Currently is as below, which is way too ugly ``` 335 Create a new model by parsing and validating input data from keyword arguments. 336 337 Raises ValidationError if the input data cannot be parsed to form a valid model. 338 """ 339 # Uses something other than `self` the first arg to allow "self" as a settable attribute --> 340 values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data) 341 if validation_error: 342 raise validation_error ... ---> 53 input_variables = values["input_variables"] 54 template = values["template"] 55 template_format = values["template_format"] KeyError: 'input_variables' ```
improve error messages for missing keys in pydantic classes
https://api.github.com/repos/langchain-ai/langchain/issues/109/comments
3
2022-11-10T05:03:46Z
2023-10-12T16:11:25Z
https://github.com/langchain-ai/langchain/issues/109
1,443,260,377
109
[ "langchain-ai", "langchain" ]
per https://github.com/hwchase17/langchain/issues/104 needed to start skipping unit tests due to a segfault - look into this more and figure out what fixes are needed https://github.com/hwchase17/langchain/blob/95dd2f140e19d29bdb62d4dae2048e3edf0ee147/tests/integration_tests/embeddings/test_huggingface.py#L7
fix sentence_transformers segfault in integration tests
https://api.github.com/repos/langchain-ai/langchain/issues/108/comments
1
2022-11-09T21:29:43Z
2023-09-12T21:29:58Z
https://github.com/langchain-ai/langchain/issues/108
1,442,768,284
108
[ "langchain-ai", "langchain" ]
``` pytest tests/integration_tests ============================= test session starts ============================== platform darwin -- Python 3.9.12, pytest-7.1.1, pluggy-1.0.0 rootdir: /Users/delip/workspace/langchain plugins: anyio-3.5.0, dotenv-0.5.2 collected 14 items / 1 error ==================================== ERRORS ==================================== ____________ ERROR collecting tests/integration_tests/test_faiss.py ____________ ImportError while importing test module '/Users/delip/workspace/langchain/tests/integration_tests/test_faiss.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: ../../opt/anaconda3/lib/python3.9/importlib/__init__.py:127: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/integration_tests/test_faiss.py:9: in <module> from langchain.faiss import FAISS E ModuleNotFoundError: No module named 'langchain.faiss' ```
make integration_tests fails currently
https://api.github.com/repos/langchain-ai/langchain/issues/104/comments
3
2022-11-09T19:42:36Z
2022-11-09T21:28:18Z
https://github.com/langchain-ai/langchain/issues/104
1,442,648,768
104
[ "langchain-ai", "langchain" ]
I get this error when I run `pip install -r requirements.txt` ``` ERROR: Could not find a version that satisfies the requirement faiss (from versions: none) ERROR: No matching distribution found for faiss ``` As per [this issue](https://github.com/facebookresearch/faiss/issues/984), requirements.txt should be updated to faiss-cpu.
pip install requirements.txt fails on conda on mac
https://api.github.com/repos/langchain-ai/langchain/issues/101/comments
1
2022-11-09T18:17:26Z
2022-11-09T23:47:48Z
https://github.com/langchain-ai/langchain/issues/101
1,442,545,258
101
[ "langchain-ai", "langchain" ]
add llm extra dependencies add all extra dependencies
improve pip install
https://api.github.com/repos/langchain-ai/langchain/issues/96/comments
0
2022-11-09T05:21:12Z
2022-11-14T16:34:36Z
https://github.com/langchain-ai/langchain/issues/96
1,441,400,288
96
[ "langchain-ai", "langchain" ]
to make sure they are up to date
add tests for notebooks
https://api.github.com/repos/langchain-ai/langchain/issues/94/comments
7
2022-11-09T02:20:03Z
2023-09-10T16:47:31Z
https://github.com/langchain-ai/langchain/issues/94
1,441,238,396
94
[ "langchain-ai", "langchain" ]
First, when I load them I get a warning: ```python hf = HuggingFaceHub(repo_id="google/flan-t5-xl") You're using a different task than the one specified in the repository. Be sure to know what you're doing :) ``` Then, when I use it in inference, I get gibberish. ```python hf("The capital of New York is") 'ew York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is The capital of the world New York is' ``` If I run the API via `requests`, I get the expected answer ```python import requests API_URL = "https://api-inference.huggingface.co/models/google/flan-t5-xl" headers = {"Authorization": "Bearer api_org_xxxxxxxxxxxxxxxxxxxxxxxxxxx"} def query(payload): response = requests.post(API_URL, headers=headers, json=payload) return response.json() output = query({ "inputs": "The capital of New York is", }) print(output) [{'generated_text': 'Albany'}] ``` Any suggestions?
google/flan-t5-xxl and google/flan-t5-xl don't seem to work with HuggingFaceHub
https://api.github.com/repos/langchain-ai/langchain/issues/90/comments
2
2022-11-08T21:15:39Z
2022-11-09T17:39:24Z
https://github.com/langchain-ai/langchain/issues/90
1,440,914,516
90
[ "langchain-ai", "langchain" ]
null
get data from a particular url
https://api.github.com/repos/langchain-ai/langchain/issues/89/comments
0
2022-11-08T19:20:04Z
2022-12-11T22:25:02Z
https://github.com/langchain-ai/langchain/issues/89
1,440,772,447
89
[ "langchain-ai", "langchain" ]
https://github.com/hwchase17/langchain/blob/master/langchain/text_splitter.py
Add NLTK support for splitting text
https://api.github.com/repos/langchain-ai/langchain/issues/88/comments
0
2022-11-08T14:14:54Z
2022-11-10T04:46:57Z
https://github.com/langchain-ai/langchain/issues/88
1,440,287,738
88
[ "langchain-ai", "langchain" ]
null
Add support for pinecone vector DB
https://api.github.com/repos/langchain-ai/langchain/issues/87/comments
4
2022-11-08T14:13:06Z
2023-09-10T16:47:36Z
https://github.com/langchain-ai/langchain/issues/87
1,440,284,398
87
[ "langchain-ai", "langchain" ]
null
Add HuggingFace Hub embeddings support
https://api.github.com/repos/langchain-ai/langchain/issues/86/comments
2
2022-11-08T14:11:12Z
2022-11-27T08:25:01Z
https://github.com/langchain-ai/langchain/issues/86
1,440,280,293
86
[ "langchain-ai", "langchain" ]
null
Add AI21 Embeddings support
https://api.github.com/repos/langchain-ai/langchain/issues/85/comments
8
2022-11-08T14:10:45Z
2023-09-27T13:45:46Z
https://github.com/langchain-ai/langchain/issues/85
1,440,279,263
85
[ "langchain-ai", "langchain" ]
null
Add AI21 text generation support
https://api.github.com/repos/langchain-ai/langchain/issues/84/comments
0
2022-11-08T14:10:33Z
2022-11-10T16:12:30Z
https://github.com/langchain-ai/langchain/issues/84
1,440,278,806
84
[ "langchain-ai", "langchain" ]
null
Add Cohere Embeddings support
https://api.github.com/repos/langchain-ai/langchain/issues/83/comments
1
2022-11-08T14:10:14Z
2022-11-10T04:46:27Z
https://github.com/langchain-ai/langchain/issues/83
1,440,278,031
83
[ "langchain-ai", "langchain" ]
It's just a bit annoying, I want to use this library in production and I currently store credentials not in the environment. I think the ideal API is like all the AWS SDKs where you can either stick them in the environment OR pass them as params to the llm constructor. I can do a PR for this if you're accepting PRs?
Should be able to pass API keys as params rather than requiring them to be in the environment
https://api.github.com/repos/langchain-ai/langchain/issues/76/comments
3
2022-11-07T09:48:42Z
2022-11-07T21:35:03Z
https://github.com/langchain-ai/langchain/issues/76
1,438,065,793
76
[ "langchain-ai", "langchain" ]
I have just updated to version 0.0.7 1- When running a simple question like: "What is the capital of Idaho?" , the result is OK 2- When running a question like: "What is the hometown of the reigning men's U.S. Open champion?" I got the following error: What is the hometown of the reigning men's U.S. Open champion? Are follow up questions needed here: Yes. Follow up: Who is the reigning men's U.S. Open champion? (.......) File ~/anaconda3/envs/nlp/lib/python3.10/site-packages/langchain/chains/self_ask_with_search/base.py:166, in SelfAskWithSearchChain.run(self, question) 152 def run(self, question: str) -> str: 153 """Run self ask with search chain. 154 155 Args: (...) ... --> 107 elif "snippet" in res["organic_results"][0].keys(): 108 toret = res["organic_results"][0]["snippet"] 109 else: KeyError: 'organic_results'
SelfAskWithSearchChain error when followup required
https://api.github.com/repos/langchain-ai/langchain/issues/58/comments
7
2022-11-03T13:35:03Z
2022-11-07T13:52:16Z
https://github.com/langchain-ai/langchain/issues/58
1,434,674,823
58
[ "langchain-ai", "langchain" ]
https://github.com/deepset-ai/haystack
add support for haystack
https://api.github.com/repos/langchain-ai/langchain/issues/55/comments
21
2022-11-02T04:58:18Z
2023-11-04T16:07:26Z
https://github.com/langchain-ai/langchain/issues/55
1,432,498,748
55
[ "langchain-ai", "langchain" ]
elasticsearch, pinecone
add support for more vector databases
https://api.github.com/repos/langchain-ai/langchain/issues/54/comments
3
2022-11-02T04:57:58Z
2022-11-08T14:12:46Z
https://github.com/langchain-ai/langchain/issues/54
1,432,498,499
54
[ "langchain-ai", "langchain" ]
cohere, huggingface, ai21
Add support for more embedding models
https://api.github.com/repos/langchain-ai/langchain/issues/53/comments
10
2022-11-02T04:57:41Z
2022-11-08T14:09:57Z
https://github.com/langchain-ai/langchain/issues/53
1,432,498,294
53
[ "langchain-ai", "langchain" ]
maybe not the ones that require $$
Run integration tests on GHA
https://api.github.com/repos/langchain-ai/langchain/issues/52/comments
1
2022-11-02T04:20:00Z
2023-09-12T21:29:57Z
https://github.com/langchain-ai/langchain/issues/52
1,432,464,453
52
[ "langchain-ai", "langchain" ]
Would be good to have some methods that split on tokens as in the OpenAI example https://github.com/openai/openai-cookbook/blob/459afa7d9bf026c4434f54458dc7d9e7d9f9f5fe/examples/Obtain_dataset.ipynb
Add huggingface tokenizer support for splitting text
https://api.github.com/repos/langchain-ai/langchain/issues/45/comments
1
2022-11-01T03:54:31Z
2022-11-13T17:37:45Z
https://github.com/langchain-ai/langchain/issues/45
1,430,824,058
45
[ "langchain-ai", "langchain" ]
null
Add vector database semantic search chain
https://api.github.com/repos/langchain-ai/langchain/issues/40/comments
2
2022-10-28T06:52:33Z
2022-11-12T15:24:50Z
https://github.com/langchain-ai/langchain/issues/40
1,426,777,906
40
[ "langchain-ai", "langchain" ]
null
add vector database (FAISS) integration
https://api.github.com/repos/langchain-ai/langchain/issues/39/comments
0
2022-10-28T06:52:15Z
2022-11-04T18:18:10Z
https://github.com/langchain-ai/langchain/issues/39
1,426,777,633
39
[ "langchain-ai", "langchain" ]
right now, some chains print out intermediate steps, some dont. lets standardize it so that they all have the same flag which turns it on/off, and things are printed out in a standard way. Ideally colorized
more consistent printing of intermediate steps
https://api.github.com/repos/langchain-ai/langchain/issues/38/comments
0
2022-10-28T06:51:51Z
2022-11-04T18:18:01Z
https://github.com/langchain-ai/langchain/issues/38
1,426,777,279
38
[ "langchain-ai", "langchain" ]
null
create github action to auto publish new pypi package when version changes
https://api.github.com/repos/langchain-ai/langchain/issues/26/comments
3
2022-10-26T04:46:07Z
2023-08-24T16:22:21Z
https://github.com/langchain-ai/langchain/issues/26
1,423,431,400
26
[ "MonetDB", "MonetDB" ]
### Describe the bug When I want to update monet to the Jul2021 Feature Release version (11.41.5), the package is installed and the farm is started, but when I perform the monetdb start <BD> it waits, it has been going on for more than 10 hours. root@im-bono3-percona2-ng1:/tmp/monetdb/11.41.5|⇒ monetdb start im_monet starting database 'im_monet'... The log shows nothing ### Reproduction steps _No response_ ### Expected behavior that the version is updated ### MonetDB release Nov2019-SP3 ### Executables source Release packages ### Operating System Red Hat 7.9 ### Additional context _No response_
upgrade monetdb version Nov2019-SP3 bugfix release (11.35.19) to Jul2021 Feature Release (11.41.5)
https://api.github.com/repos/MonetDB/MonetDB/issues/7564/comments
0
2024-08-09T16:10:44Z
2024-08-09T16:10:44Z
https://github.com/MonetDB/MonetDB/issues/7564
2,458,248,773
7,564
[ "MonetDB", "MonetDB" ]
### Describe the bug Consider the following test case. The third query should return an empty result set since the second query shows that the expression should be evaluated to `null`. ### Reproduction steps ```sql DROP TABLE IF EXISTS t1 CASCADE; CREATE TABLE t1(c1 VARCHAR(500)); INSERT INTO t1(c1) VALUES ('a'); CREATE VIEW v0(c0) AS SELECT ('a'||NULL) FROM t1; SELECT * FROM v0; -- null SELECT ((v0.c0 IS NOT DISTINCT FROM v0.c0) AND (v0.c0 = v0.c0)) FROM v0; -- null SELECT * FROM v0 WHERE ((v0.c0 IS NOT DISTINCT FROM v0.c0) AND (v0.c0 = v0.c0)); -- Expected: empty result set -- Actual: null ``` ### Expected behavior Empty result. ### MonetDB release v11.52.0 (hg id: 0d891eb) ### Executables source Self compiled and installed ### Operating System Ubuntu 22.04 ### Additional context _No response_
Unexpected result when using `IS DISTINCT FROM` in `VIEW`
https://api.github.com/repos/MonetDB/MonetDB/issues/7563/comments
0
2024-08-09T15:51:40Z
2024-08-09T15:51:40Z
https://github.com/MonetDB/MonetDB/issues/7563
2,458,215,175
7,563
[ "MonetDB", "MonetDB" ]
### Describe the bug The following test case crashed the monetdb server. ### Reproduction steps ```sql DROP TABLE IF EXISTS t0 CASCADE; CREATE TABLE t0(c0 INTERVAL YEAR TO MONTH); INSERT INTO t0( c0) VALUES ('2-5'); SELECT * FROM t0 WHERE (NOT ((t0.c0)>=('--18945599805'))); ``` ### Expected behavior No crash. ### MonetDB release 11.52.0 (hg id: eca5d09) ### Executables source Self compiled and installed ### Operating System Ubuntu 22.04 ### Additional context Build from source https://www.monetdb.org/documentation-Aug2024/dev-guide/installation-from-source/#summary Backtrace: ``` #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140122476131904) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=140122476131904) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=140122476131904, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x00007f70d14dc476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x00007f70d14c27f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x00007f70d14c271b in __assert_fail_base ( fmt=0x7f70d1677130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f70d0ae3108 "(lng) GDK_int_min <= upcast && upcast <= (lng) GDK_int_max", file=0x7f70d0ae2e48 "/app/MonetDB/sql/backends/monet5/sql_time.c", line=954, function=<optimized out>) at ./assert/assert.c:92 #6 0x00007f70d14d3e96 in __GI___assert_fail ( assertion=0x7f70d0ae3108 "(lng) GDK_int_min <= upcast && upcast <= (lng) GDK_int_max", file=0x7f70d0ae2e48 "/app/MonetDB/sql/backends/monet5/sql_time.c", line=954, function=0x7f70d0ae36b0 <__PRETTY_FUNCTION__.9> "month_interval_str_imp") at ./assert/assert.c:101 #7 0x00007f70d089477c in month_interval_str_imp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #8 0x00007f70d0894e6b in month_interval_str () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #9 0x00007f70d2cf874e in runMALsequence () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #10 0x00007f70d2cfc75e in DFLOWworker () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #11 0x00007f70d1fd66ed in thread_starter () from /usr/local/lib/libbat-11.52.0.so.28 #12 0x00007f70d152eac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #13 0x00007f70d15bfa04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 ```
Assertion failure when comparing `INTERVAL` value
https://api.github.com/repos/MonetDB/MonetDB/issues/7562/comments
0
2024-08-09T08:11:14Z
2024-08-09T08:11:14Z
https://github.com/MonetDB/MonetDB/issues/7562
2,457,369,258
7,562
[ "MonetDB", "MonetDB" ]
### Is your feature request related to a problem? Describe it It'd be great to have Alpine support and a Dockerfile and maybe even you upload it officially to your hub.docker.com page. Alpine is smaller than Debian, for example I included a Debian Dockerfile and built a MonetDB of 153MB there versus Alpine's 32.9MB. ### Describe the solution you'd like to see implemented I've done it ### Describe alternatives you've considered Maintaining a fork ### Additional context Where do I send the patch file? - Here's my fork and its branch with this feature implemented: https://github.com/SamuelMarks/MonetDB/tree/alpine-and-docker
Alpine support + Dockerfile
https://api.github.com/repos/MonetDB/MonetDB/issues/7561/comments
4
2024-08-02T16:45:44Z
2024-08-08T14:50:22Z
https://github.com/MonetDB/MonetDB/issues/7561
2,445,391,311
7,561
[ "MonetDB", "MonetDB" ]
### Describe the bug ``` 10.03 CMake Error at build/common/stream/cmake_install.cmake:61 (file): 10.03 file INSTALL cannot find 10.03 "/src/monetdb/build/common/stream/libstream-11.52.0.so.26.2.0": No such 10.03 file or directory. ``` ### Reproduction steps I'm preparing a Dockerfile for you, and came across this error. Here's how to reproduce it: ### Dockerfile ```dockerfile FROM alpine RUN apk add --no-cache bison cmake pkgconf python3 \ openssl-dev bzip2-dev lz4-dev pcre-dev readline-dev xz-dev zlib-dev \ build-base WORKDIR /src/monetdb COPY . . RUN cmake -S . -B build && \ cmake --install build --prefix /mybin ``` ```sh $ docker build . -t monetdb:latest ``` ### Expected behavior _No response_ ### MonetDB release d69483005b3bfc18d070abe43d827bebd9e76a4b ### Executables source Self compiled and installed ### Operating System Alpine ### Additional context ``` [+] Building 12.5s (9/10) docker:default => [internal] load build definition from Dockerfile.alpine 0.0s => => transferring dockerfile: 315B 0.0s => [internal] load metadata for docker.io/library/alpine:latest 0.3s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [1/6] FROM docker.io/library/alpine:latest@sha256:0a4eaa0eecf5f8c050e5bba433f58c052be7587ee8af3e8b3910ef9ab5fbe9f5 0.0s => [internal] load build context 0.2s => => transferring context: 400.78kB 0.2s => CACHED [2/6] RUN apk add --no-cache bison cmake pkgconf python3 openssl-dev bzip2-dev lz4-dev pcre-dev readlin 0.0s => CACHED [3/6] WORKDIR /src/monetdb 0.0s => [4/6] COPY . . 1.7s => ERROR [5/6] RUN cmake -S . -B build && cmake --install build --prefix /mybin 10.1s ------ > [5/6] RUN cmake -S . -B build && cmake --install build --prefix /mybin: 0.257 -- The C compiler identification is GNU 13.2.1 0.272 -- Detecting C compiler ABI info 0.338 -- Detecting C compiler ABI info - done 0.354 -- Check for working C compiler: /usr/bin/cc - skipped 0.355 -- Detecting C compile features 0.355 -- Detecting C compile features - done 0.365 -- Found BISON: /usr/bin/bison (found suitable version "3.8.2", minimum required is "3.0") 0.366 -- Performing Test Iconv_IS_BUILT_IN 0.430 -- Performing Test Iconv_IS_BUILT_IN - Success 0.432 -- Found Iconv: built in to C library 0.433 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD 0.502 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success 0.504 -- Found Threads: TRUE 0.795 -- Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Python3_LIBRARIES Python3_NumPy_INCLUDE_DIRS Development NumPy Development.Module Development.Embed) (found version "3.12.3") 0.804 -- Could NOT find RTree (missing: RTREE_LIBRARY RTREE_INCLUDE_DIR) 0.806 -- Looking for lzma_auto_decoder in /usr/lib/liblzma.so 0.868 -- Looking for lzma_auto_decoder in /usr/lib/liblzma.so - found 0.868 -- Looking for lzma_easy_encoder in /usr/lib/liblzma.so 0.933 -- Looking for lzma_easy_encoder in /usr/lib/liblzma.so - found 0.934 -- Looking for lzma_lzma_preset in /usr/lib/liblzma.so 0.998 -- Looking for lzma_lzma_preset in /usr/lib/liblzma.so - found 1.000 -- Found LibLZMA: /usr/lib/liblzma.so (found version "5.6.1") 1.018 -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) 1.022 -- Found PCRE: /usr/lib/libpcre.so 1.026 -- Found BZip2: /usr/lib/libbz2.so (found version "1.0.8") 1.026 -- Looking for BZ2_bzCompressInit 1.093 -- Looking for BZ2_bzCompressInit - found 1.114 -- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) 1.120 -- Found ZLIB: /lib/libz.so (found version "1.3.1") 1.123 -- Found LZ4: /usr/lib/liblz4.so (found suitable version "1.9.4", minimum required is "1.8.0") 1.128 -- Could NOT find Proj (missing: PROJ_LIBRARIES PROJ_INCLUDE_DIR) (Required is at least version "6.0") 1.132 -- Could NOT find Valgrind (missing: VALGRIND_LIBRARIES VALGRIND_INCLUDE_DIR) 1.180 -- Found Readline: /usr/lib/libreadline.so 1.186 -- Could NOT find CFitsIO (missing: CFITSIO_LIBRARIES CFITSIO_INCLUDE_DIR) 1.190 -- Could NOT find NetCDF (missing: NETCDF_LIBRARIES NETCDF_INCLUDE_DIR) 1.195 -- Could NOT find KVM (missing: KVM_LIBRARIES KVM_INCLUDE_DIR) 1.201 -- Could NOT find Geos (missing: GEOS_LIBRARIES GEOS_INCLUDE_DIR) (Required is at least version "3.10.0") 1.201 -- Disable SHP, geom module required for ESRI Shapefile vault 1.208 -- Could NOT find ODBC (missing: ODBC_LIBRARY ODBC_INCLUDE_DIR) 1.222 -- Could NOT find ODBCinst (missing: ODBCINST_LIBRARIES ODBCINST_INCLUDE_DIR) 1.227 -- Could not find libR shared library. 1.229 -- Could NOT find LibR (missing: LIBR_HOME LIBR_EXECUTABLE LIBR_INCLUDE_DIRS LIBR_LIBRARIES LIBR_DOC_DIR) 1.283 -- Found OpenSSL: /usr/lib/libcrypto.so (found suitable version "3.3.1", minimum required is "1.1.1") 1.286 -- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE) 1.288 -- Could NOT find Createrepo (missing: CREATEREPO_EXECUTABLE) 1.290 -- Could NOT find Rpmbuild (missing: RPMBUILD_EXECUTABLE) 1.293 -- Could NOT find DpkgBuildpackage (missing: DPKGBUILDPACKAGE_EXECUTABLE) 1.295 -- Could NOT find Reprepro (missing: REPREPRO_EXECUTABLE) 1.297 -- Could NOT find Semodule (missing: SELINUX_MAKEFILE) 1.300 -- Found Awk: /usr/bin/awk 1.302 -- Could NOT find Candle (missing: CANDLE_EXECUTABLE) 1.304 -- Performing Test Werrorimplicitfunctiondeclaration_FOUND 1.365 -- Performing Test Werrorimplicitfunctiondeclaration_FOUND - Success 1.366 -- Performing Test Wpointerarith_FOUND 1.430 -- Performing Test Wpointerarith_FOUND - Success 1.431 -- Performing Test Wundef_FOUND 1.495 -- Performing Test Wundef_FOUND - Success 1.496 -- Performing Test Wformat2_FOUND 1.558 -- Performing Test Wformat2_FOUND - Success 1.559 -- Performing Test Wformatoverflow1_FOUND 1.624 -- Performing Test Wformatoverflow1_FOUND - Success 1.625 -- Performing Test Wnoformatnonliteral_FOUND 1.688 -- Performing Test Wnoformatnonliteral_FOUND - Success 1.689 -- Performing Test Wnocastfunctiontype_FOUND 1.751 -- Performing Test Wnocastfunctiontype_FOUND - Success 1.752 -- Performing Test Winitself_FOUND 1.812 -- Performing Test Winitself_FOUND - Success 1.814 -- Performing Test Winvalidpch_FOUND 1.878 -- Performing Test Winvalidpch_FOUND - Success 1.879 -- Performing Test Wmissingdeclarations_FOUND 1.942 -- Performing Test Wmissingdeclarations_FOUND - Success 1.943 -- Performing Test Wmissingformatattribute_FOUND 2.012 -- Performing Test Wmissingformatattribute_FOUND - Success 2.013 -- Performing Test Wmissingprototypes_FOUND 2.079 -- Performing Test Wmissingprototypes_FOUND - Success 2.080 -- Performing Test Wnomissingbraces_FOUND 2.146 -- Performing Test Wnomissingbraces_FOUND - Success 2.147 -- Performing Test Wnomissingfieldinitializers_FOUND 2.212 -- Performing Test Wnomissingfieldinitializers_FOUND - Success 2.213 -- Performing Test Woldstyledefinition_FOUND 2.280 -- Performing Test Woldstyledefinition_FOUND - Success 2.281 -- Performing Test Wpacked_FOUND 2.346 -- Performing Test Wpacked_FOUND - Success 2.347 -- Performing Test Wunknownpragmas_FOUND 2.414 -- Performing Test Wunknownpragmas_FOUND - Success 2.415 -- Performing Test Wvariadicmacros_FOUND 2.476 -- Performing Test Wvariadicmacros_FOUND - Success 2.476 -- Performing Test Wstackprotector_FOUND 2.544 -- Performing Test Wstackprotector_FOUND - Success 2.545 -- Performing Test fstackprotectorall_FOUND 2.609 -- Performing Test fstackprotectorall_FOUND - Success 2.610 -- Performing Test Wpackedbitfieldcompat_FOUND 2.675 -- Performing Test Wpackedbitfieldcompat_FOUND - Success 2.675 -- Performing Test Wsyncnand_FOUND 2.738 -- Performing Test Wsyncnand_FOUND - Success 2.739 -- Performing Test Wmissingincludedirs_FOUND 2.806 -- Performing Test Wmissingincludedirs_FOUND - Success 2.807 -- Performing Test Wlogicalop_FOUND 2.869 -- Performing Test Wlogicalop_FOUND - Success 2.870 -- Performing Test Wduplicatedcond_FOUND 2.934 -- Performing Test Wduplicatedcond_FOUND - Success 2.935 -- Performing Test Wduplicatedbranches_FOUND 2.999 -- Performing Test Wduplicatedbranches_FOUND - Success 2.999 -- Performing Test Wrestrict_FOUND 3.064 -- Performing Test Wrestrict_FOUND - Success 3.064 -- Performing Test Wnestedexterns_FOUND 3.130 -- Performing Test Wnestedexterns_FOUND - Success 3.131 -- Performing Test Wmissingnoreturn_FOUND 3.199 -- Performing Test Wmissingnoreturn_FOUND - Success 3.200 -- Performing Test Wuninitialized_FOUND 3.265 -- Performing Test Wuninitialized_FOUND - Success 3.266 -- Performing Test Wnocharsubscripts_FOUND 3.332 -- Performing Test Wnocharsubscripts_FOUND - Success 3.333 -- Performing Test Wunreachablecode_FOUND 3.395 -- Performing Test Wunreachablecode_FOUND - Success 3.396 -- Performing Test Wnounreachablecode_FOUND 3.462 -- Performing Test Wnounreachablecode_FOUND - Success 3.463 -- Looking for dispatch/dispatch.h 3.497 -- Looking for dispatch/dispatch.h - not found 3.497 -- Looking for dlfcn.h 3.560 -- Looking for dlfcn.h - found 3.560 -- Looking for fcntl.h 3.621 -- Looking for fcntl.h - found 3.621 -- Looking for kvm.h 3.659 -- Looking for kvm.h - not found 3.659 -- Looking for mach/mach_init.h 3.695 -- Looking for mach/mach_init.h - not found 3.696 -- Looking for mach/task.h 3.731 -- Looking for mach/task.h - not found 3.731 -- Looking for mach-o/dyld.h 3.769 -- Looking for mach-o/dyld.h - not found 3.769 -- Looking for poll.h 3.832 -- Looking for poll.h - found 3.832 -- Looking for procfs.h 3.870 -- Looking for procfs.h - not found 3.870 -- Looking for pwd.h 3.933 -- Looking for pwd.h - found 3.933 -- Looking for semaphore.h 4.003 -- Looking for semaphore.h - found 4.003 -- Looking for stdatomic.h 4.068 -- Looking for stdatomic.h - found 4.068 -- Looking for strings.h 4.136 -- Looking for strings.h - found 4.136 -- Looking for stropts.h 4.204 -- Looking for stropts.h - found 4.204 -- Looking for sys/file.h 4.271 -- Looking for sys/file.h - found 4.271 -- Looking for sys/ioctl.h 4.339 -- Looking for sys/ioctl.h - found 4.339 -- Looking for sys/mman.h 4.410 -- Looking for sys/mman.h - found 4.410 -- Looking for sys/param.h 4.474 -- Looking for sys/param.h - found 4.474 -- Looking for include files stdlib.h, sys/random.h 4.542 -- Looking for include files stdlib.h, sys/random.h - found 4.542 -- Looking for sys/resource.h 4.607 -- Looking for sys/resource.h - found 4.607 -- Looking for sys/stat.h 4.674 -- Looking for sys/stat.h - found 4.674 -- Looking for sys/termios.h 4.739 -- Looking for sys/termios.h - found 4.739 -- Looking for sys/times.h 4.805 -- Looking for sys/times.h - found 4.805 -- Looking for sys/types.h 4.869 -- Looking for sys/types.h - found 4.869 -- Looking for sys/uio.h 4.937 -- Looking for sys/uio.h - found 4.937 -- Looking for sys/un.h 5.000 -- Looking for sys/un.h - found 5.000 -- Looking for unistd.h 5.064 -- Looking for unistd.h - found 5.064 -- Looking for winsock2.h 5.099 -- Looking for winsock2.h - not found 5.099 -- Looking for opendir 5.162 -- Looking for opendir - found 5.163 -- Looking for gethostbyname 5.230 -- Looking for gethostbyname - found 5.231 -- Looking for setsockopt 5.291 -- Looking for setsockopt - found 5.291 -- Looking for gettimeofday 5.360 -- Looking for gettimeofday - found 5.360 -- Looking for getaddrinfo 5.428 -- Looking for getaddrinfo - found 5.428 -- Looking for getaddrinfo 5.465 -- Looking for getaddrinfo - not found 5.466 -- Looking for fdatasync 5.532 -- Looking for fdatasync - found 5.532 -- Looking for accept4 5.602 -- Looking for accept4 - found 5.602 -- Looking for asctime_r 5.665 -- Looking for asctime_r - found 5.665 -- Looking for clock_gettime 5.735 -- Looking for clock_gettime - found 5.735 -- Looking for ctime_r 5.800 -- Looking for ctime_r - found 5.800 -- Performing Test HAVE_TM_GMTOFF 5.866 -- Performing Test HAVE_TM_GMTOFF - Success 5.866 -- Looking for dispatch_semaphore_create 5.901 -- Looking for dispatch_semaphore_create - not found 5.901 -- Looking for fallocate 5.968 -- Looking for fallocate - found 5.968 -- Looking for fcntl 6.033 -- Looking for fcntl - found 6.033 -- Looking for fsync 6.100 -- Looking for fsync - found 6.100 -- Looking for ftime 6.168 -- Looking for ftime - found 6.168 -- Looking for getentropy 6.235 -- Looking for getentropy - found 6.235 -- Looking for getexecname 6.300 -- Looking for getexecname - not found 6.300 -- Looking for getlogin 6.366 -- Looking for getlogin - found 6.366 -- Looking for getopt_long 6.432 -- Looking for getopt_long - found 6.432 -- Looking for getrlimit 6.497 -- Looking for getrlimit - found 6.497 -- Looking for gettid 6.561 -- Looking for gettid - found 6.562 -- Looking for gettimeofday 6.628 -- Looking for gettimeofday - found 6.628 -- Looking for getuid 6.694 -- Looking for getuid - found 6.694 -- Looking for gmtime_r 6.760 -- Looking for gmtime_r - found 6.761 -- Looking for localtime_r 6.827 -- Looking for localtime_r - found 6.827 -- Looking for strerror_r 6.898 -- Looking for strerror_r - found 6.898 -- Looking for lockf 6.961 -- Looking for lockf - found 6.961 -- Looking for madvise 7.028 -- Looking for madvise - found 7.029 -- Looking for mremap 7.095 -- Looking for mremap - found 7.095 -- Looking for nanosleep 7.162 -- Looking for nanosleep - found 7.162 -- Looking for nl_langinfo 7.228 -- Looking for nl_langinfo - found 7.228 -- Looking for _NSGetExecutablePath 7.296 -- Looking for _NSGetExecutablePath - not found 7.297 -- Looking for pipe2 7.362 -- Looking for pipe2 - found 7.362 -- Looking for poll 7.427 -- Looking for poll - found 7.427 -- Looking for popen 7.493 -- Looking for popen - found 7.493 -- Looking for posix_fadvise 7.557 -- Looking for posix_fadvise - found 7.557 -- Looking for posix_fallocate 7.620 -- Looking for posix_fallocate - found 7.620 -- Looking for posix_madvise 7.690 -- Looking for posix_madvise - found 7.690 -- Looking for setsid 7.754 -- Looking for setsid - found 7.754 -- Looking for shutdown 7.819 -- Looking for shutdown - found 7.819 -- Looking for sigaction 7.882 -- Looking for sigaction - found 7.882 -- Looking for siglongjmp 7.948 -- Looking for siglongjmp - found 7.948 -- Looking for strptime 8.011 -- Looking for strptime - found 8.011 -- Looking for sysconf 8.075 -- Looking for sysconf - found 8.076 -- Looking for task_info 8.139 -- Looking for task_info - not found 8.139 -- Looking for times 8.204 -- Looking for times - found 8.204 -- Looking for uname 8.269 -- Looking for uname - found 8.269 -- Looking for pthread_kill 8.335 -- Looking for pthread_kill - found 8.335 -- Looking for pthread_setname_np 8.399 -- Looking for pthread_setname_np - found 8.399 -- Looking for pthread_sigmask 8.464 -- Looking for pthread_sigmask - found 8.464 -- Looking for SetThreadDescription 8.527 -- Looking for SetThreadDescription - not found 8.527 -- Looking for regcomp 8.595 -- Looking for regcomp - found 8.595 -- Looking for stdint.h 8.661 -- Looking for stdint.h - found 8.661 -- Looking for stddef.h 8.729 -- Looking for stddef.h - found 8.729 -- Check size of size_t 8.797 -- Check size of size_t - done 8.797 -- Check size of ssize_t 8.869 -- Check size of ssize_t - done 8.870 -- Check size of char 8.940 -- Check size of char - done 8.941 -- Check size of short 9.011 -- Check size of short - done 9.012 -- Check size of int 9.078 -- Check size of int - done 9.079 -- Check size of long 9.153 -- Check size of long - done 9.153 -- Check size of long long 9.220 -- Check size of long long - done 9.220 -- Check size of double 9.289 -- Check size of double - done 9.289 -- Check size of wchar_t 9.356 -- Check size of wchar_t - done 9.356 -- Check size of socklen_t 9.426 -- Check size of socklen_t - done 9.427 -- Check size of __int128 9.496 -- Check size of __int128 - done 9.496 -- Check size of __int128_t 9.568 -- Check size of __int128_t - done 9.568 -- Check size of __uint128_t 9.637 -- Check size of __uint128_t - done 9.637 -- Huge integers are available 9.741 -- Configuring done (9.5s) 9.988 -- Generating done (0.2s) 10.01 -- Build files have been written to: /src/monetdb/build 10.03 -- Install configuration: "" 10.03 -- Installing: /mybin/share/monetdb/cmake/monetdb_config_headerTargets.cmake 10.03 -- Installing: /mybin/include/monetdb/monetdb_config.h 10.03 -- Installing: /mybin/share/monetdb/cmake/MonetDBConfig.cmake 10.03 -- Installing: /mybin/share/monetdb/cmake/MonetDBConfigVersion.cmake 10.03 -- Installing: /mybin/include/monetdb/monet_options.h 10.03 -- Installing: /mybin/include/monetdb/monet_getopt.h 10.03 -- Installing: /mybin/lib/pkgconfig/monetdb-stream.pc 10.03 CMake Error at build/common/stream/cmake_install.cmake:61 (file): 10.03 file INSTALL cannot find 10.03 "/src/monetdb/build/common/stream/libstream-11.52.0.so.26.2.0": No such 10.03 file or directory. 10.03 Call Stack (most recent call first): 10.03 build/common/cmake_install.cmake:48 (include) 10.03 build/cmake_install.cmake:79 (include) 10.03 10.03 ------ Dockerfile.alpine:7 -------------------- 6 | COPY . . 7 | >>> RUN cmake -S . -B build && \ 8 | >>> cmake --install build --prefix /mybin 9 | RUN ls /mybin -------------------- ERROR: failed to solve: process "/bin/sh -c cmake -S . -B build && cmake --install build --prefix /mybin" did not complete successfully: exit code: 1 ```
build/common/stream/libstream-11.52.0.so.26.2.0": No such file
https://api.github.com/repos/MonetDB/MonetDB/issues/7560/comments
2
2024-08-01T14:00:11Z
2024-08-02T16:15:31Z
https://github.com/MonetDB/MonetDB/issues/7560
2,442,560,567
7,560
[ "MonetDB", "MonetDB" ]
### Describe the bug when an outer-join relational operator is processed by `rel_out2inner()` opt any column expression in the expression subtree of a wrapping select must be searched in the "inner part" of the join and if it exists the outer-join should be turned into an inner-join. e.g. relations: `R(n), S(n, m)` tree: `σ_{S.m = <val>} (leftjoin(R(n), S(n,m))_{R.n = S.n})` optimizer: ``` o2i(σ_{S.m = <val>} (leftjoin(R(n), S(n,m))_{R.n = S.n})) -> σ_{S.m = <val>} ( join(R(n), S(n,m))_{R.n = S.n}) ``` we fail to do that for all the outer-joins ops ### Reproduction steps let's setup a small example with 3 relations and 2 (left)outer-joins ```sql create table r(n int); create table s(n int, m text, k text); create table t(n int, l text); ``` let's first create a view of `r` and `s` left join ```sql create view rs_v as select r.n, s.m, s.k from r left join s on r.n = s.n where s.m = 'foo'; ``` and then construct another join between `rs_v` and `t` ```sql select t.n, rs_v.m, rs_v.k from t left join rs_v on t.n = rs_v.n where rs_v.k = 'bar'; ``` this will give the next relational plan ``` project ( | select ( | | left outer join ( | | | table("sys"."t") [ "t"."n" ], | | | join ( | | | | table("sys"."r") [ "r"."n" ], | | | | select ( | | | | | table("sys"."s") [ "s"."n", "s"."m", "s"."k" ] | | | | ) [ ("s"."m") = (varchar "foo") ] | | | ) [ ("r"."n") = ("s"."n") ] | | ) [ ("t"."n") = ("r"."n") ] | ) [ ("s"."k") = (varchar "bar") ] ) [ "t"."n", "s"."m" as "rs_v"."m", varchar "bar" as "rs_v"."k" ] ``` we clearly miss the optimization (conversion to simple (inner) join) of the "higher" left-join ### Expected behavior without any other optimizations (e.g. select push downs etc) the above plan should have been like ``` project ( | select ( | | join ( | | | table("sys"."t") [ "t"."n" ], | | | join ( | | | | table("sys"."r") [ "r"."n" ], | | | | select ( | | | | | table("sys"."s") [ "s"."n", "s"."m", "s"."k" ] | | | | ) [ ("s"."m") = (varchar "foo") ] | | | ) [ ("r"."n") = ("s"."n") ] | | ) [ ("t"."n") = ("r"."n") ] | ) [ ("s"."k") = (varchar "bar") ] ) [ "t"."n", "s"."m" as "rs_v"."m", varchar "bar" as "rs_v"."k" ] ``` ### MonetDB release default ### Executables source Self compiled and installed ### Operating System Fedora Linux 39 ### Additional context _No response_
Outer joins are not optimized to inner in all cases
https://api.github.com/repos/MonetDB/MonetDB/issues/7559/comments
0
2024-07-29T15:53:56Z
2024-07-30T15:57:22Z
https://github.com/MonetDB/MonetDB/issues/7559
2,435,786,098
7,559
[ "MonetDB", "MonetDB" ]
### Describe your problem copy into ... best effort was once introduced because loading 'broken' csv files could be tedious and time consuming. Unfortunately the impact on the normal flow of operations in the copy into code is heavily impacted by this feature. Also it add a lot of complexity. ### Describe the solution you'd like to see implemented remove the 'best effort' code. Replace with conversions from string which could output rows with problems. ### Additional context _No response_
Remove 'BEST EFFORT'
https://api.github.com/repos/MonetDB/MonetDB/issues/7558/comments
0
2024-07-26T14:52:54Z
2024-08-02T09:20:40Z
https://github.com/MonetDB/MonetDB/issues/7558
2,432,412,976
7,558
[ "MonetDB", "MonetDB" ]
### Describe the bug On testweb 3 tests for information_schema views show large performance degradation between Dec2023 and Aug2024 releases, but only for mac-mini Cla-Dar-i64 platforms. It concerns following tests: ``` Test Dec2023 time Aug2024 time columns 0.9s 12.8s routines 0.4s 7.6s parameters 1.1s 21.8s ``` See [Dec2023 testweb report, look at mac-mini execution times](https://www.monetdb.org/testweb/web/testgrid.php?serial=91624:11bebf588226&order=platform%2Carch%2Ccompiler&targets=Cla-Darwin-x86_64-assert-propcheck%2CCla-Darwin-x86_64%2CCla-Fedora-x86_64%2CGNU-Fedora-powerpc64-thrs%3D8-assert-propcheck-dbfarm%2CGNU-Fedora-powerpc64-thrs%3D8-notint128-assert-propcheck-dbfarm%2CGNU-Fedora-ppc64le-thrs%3D8-assert-propcheck-dbfarm%2CGNU-Fedora-ppc64le-thrs%3D8-notint128-assert-propcheck-dbfarm%2CGNU-Fedora-x86_64-assert-debug%3D65536%2CGNU-Fedora-x86_64-assert-propcheck-multifarm-coverage%2CGNU-Fedora-x86_64-dbfarm-check%2CGNU-Fedora-x86_64-notint128-dbfarm%2CGNU-Fedora-x86_64-nowal%2CGNU-Fedora-x86_64-sanitize%2CGNU-Fedora-x86_64-thrs%3D1-assert%2CGNU-Fedora-x86_64-thrs%3D1-propcheck%2CGNU-Fedora-x86_64-thrs%3D32-propcheck-jemalloc%2CGNU-Fedora-x86_64-thrs%3D53-assert-tcmalloc%2CGNU-Fedora-x86_64-undefined%2CMic-Windows2022-i386-installer%2CMic-Windows2022-x86_64-assert-propcheck%2CMic-Windows2022-x86_64-installer&nocondense&module=sql&tstlimit=sql%2Ftest%2Finformation-schema ) versus [Aug2024 testweb report, look at mac-mini execution times](https://www.monetdb.org/testweb/web/testgrid.php?serial=91663:9bfc47fb63b9&order=platform%2Carch%2Ccompiler&targets=Cla-Darwin-x86_64-assert-propcheck%2CCla-Darwin-x86_64%2CCla-Fedora-x86_64%2CGNU-Fedora-powerpc64-thrs%3D8-assert-propcheck-dbfarm%2CGNU-Fedora-powerpc64-thrs%3D8-notint128-assert-propcheck-dbfarm%2CGNU-Fedora-ppc64le-thrs%3D8-assert-propcheck-dbfarm%2CGNU-Fedora-ppc64le-thrs%3D8-notint128-assert-propcheck-dbfarm%2CGNU-Fedora-x86_64-assert-debug%3D65536%2CGNU-Fedora-x86_64-assert-propcheck-multifarm-coverage%2CGNU-Fedora-x86_64-dbfarm-check%2CGNU-Fedora-x86_64-notint128-dbfarm%2CGNU-Fedora-x86_64-nowal%2CGNU-Fedora-x86_64-sanitize%2CGNU-Fedora-x86_64-thrs%3D1-assert%2CGNU-Fedora-x86_64-thrs%3D1-propcheck%2CGNU-Fedora-x86_64-thrs%3D32-propcheck-jemalloc%2CGNU-Fedora-x86_64-thrs%3D53-assert-tcmalloc%2CGNU-Fedora-x86_64-undefined%2CMic-Windows2022-i386-installer%2CMic-Windows2022-x86_64-assert-propcheck%2CMic-Windows2022-x86_64-installer&nocondense&module=sql&tstlimit=sql%2Ftest%2Finformation-schema ) ### Reproduction steps On testweb the tests for `sql/test/information-schema/Tests/` are available (recompose the testgrid to show all test results). It appears the information_schema views queried in the 3 tests for columns, routines and parameters all call the system function sys."sql_datatype"() for the columns DATA_TYPE and INTERVAL_TYPE of the those views. This SQL function (defined in sql/scripts/52_describe.sql) is quite large, which apparently explodes the mal plan (run query with TRACE). The performance issue can more simply be reproduced by running the queries on MacOS: ``` SELECT DATA_TYPE, INTERVAL_TYPE FROM INFORMATION_SCHEMA.COLUMNS; SELECT DATA_TYPE, INTERVAL_TYPE FROM INFORMATION_SCHEMA.ROUTINES; SELECT DATA_TYPE, INTERVAL_TYPE FROM INFORMATION_SCHEMA.PARAMETERS ; ``` The first two queries should complete under half a second. The last query should complete under one second. When running the query with TRACE: ``` TRACE SELECT DATA_TYPE, INTERVAL_TYPE FROM INFORMATION_SCHEMA.COLUMNS ``` you get a very large trace result of 508567 rows. ### Expected behavior No performance degradation on mac-mini machines for Aug2024 release ### MonetDB release Aug2024 (11.51.0) ### Executables source Release packages ### Operating System Cla-Dar-i64 ### Additional context _No response_
Query performance degradation on MacOS for queries calling large SQL UDF
https://api.github.com/repos/MonetDB/MonetDB/issues/7557/comments
2
2024-07-24T13:20:15Z
2024-07-26T08:51:10Z
https://github.com/MonetDB/MonetDB/issues/7557
2,427,578,556
7,557
[ "MonetDB", "MonetDB" ]
### Describe the bug The following test case crashed the monetdb server. ### Reproduction steps ```sql DROP TABLE IF EXISTS t0 CASCADE; CREATE TABLE t0 ( c1 INTEGER ) ; CREATE VIEW v0(c0) AS SELECT NOT('a') FROM t0 ORDER BY (1); SELECT v0.c0 FROM v0, t0 WHERE (STARTSWITH(t0.c1, v0.c0, v0.c0)) ; ``` ### Expected behavior No crash. ### MonetDB release 11.52.0 (hg id: 07e6a11) ### Executables source Self compiled and installed ### Operating System Ubuntu 22.04 ### Additional context Build from source https://www.monetdb.org/documentation-Aug2024/dev-guide/installation-from-source/#summary Backtrace: ``` #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=139694668453440) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=139694668453440) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=139694668453440, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x00007f0d3afec476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x00007f0d3afd27f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x00007f0d3afd271b in __assert_fail_base (fmt=0x7f0d3b187130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f0d3ca193ff "BATcount(c) >= 1", file=0x7f0d3ca18ac8 "/app/MonetDB/monetdb5/modules/atoms/str.c", line=2878, function=<optimized out>) at ./assert/assert.c:92 #6 0x00007f0d3afe3e96 in __GI___assert_fail (assertion=0x7f0d3ca193ff "BATcount(c) >= 1", file=0x7f0d3ca18ac8 "/app/MonetDB/monetdb5/modules/atoms/str.c", line=2878, function=0x7f0d3ca1add8 <__PRETTY_FUNCTION__.0> "ignorecase") at ./assert/assert.c:101 #7 0x00007f0d3c856094 in ignorecase () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #8 0x00007f0d3c85639a in STRstartswithjoin () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #9 0x00007f0d3c810f9f in runMALsequence () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #10 0x00007f0d3c814ef8 in DFLOWworker () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #11 0x00007f0d3baef019 in thread_starter () from /usr/local/lib/libbat-11.52.0.so.28 #12 0x00007f0d3b03eac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #13 0x00007f0d3b0cfa04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 ```
Assertion failure when using `STARTSWITH` with view
https://api.github.com/repos/MonetDB/MonetDB/issues/7556/comments
0
2024-07-21T05:47:07Z
2024-07-21T10:39:54Z
https://github.com/MonetDB/MonetDB/issues/7556
2,421,237,516
7,556
[ "MonetDB", "MonetDB" ]
### Describe the bug Consider the test case below. The SQL query involving a UNION ALL operation with a NOT condition on a CASTed value produces incorrect results. The expected result should return all instances of `true` from the joined tables based on the condition, but it only returns one instance instead of two. ### Reproduction steps ```sql DROP TABLE IF EXISTS t1 CASCADE; DROP TABLE IF EXISTS t0 CASCADE; CREATE TABLE t1 (c1 BOOLEAN) ; CREATE TABLE t0 (c0 INTEGER, PRIMARY KEY(c0) ) ; INSERT INTO t1(c1) VALUES (true); INSERT INTO t0(c0) VALUES (2); INSERT INTO t0(c0) VALUES (1); SELECT t1.c1 FROM t0, t1 WHERE (NOT (t1.c1 != CAST(t0.c0 AS BOOLEAN))); -- true, true SELECT t1.c1 FROM t0, t1 WHERE (NOT (t1.c1 != CAST(t0.c0 AS BOOLEAN))) UNION ALL SELECT t1.c1 FROM t0, t1 WHERE (t1.c1 != CAST(t0.c0 AS BOOLEAN)); -- Expected: true, true -- Actual: true ``` ### Expected behavior As mentioned above. ### MonetDB release 11.52.0 (hg id: 07e6a11) ### Executables source Self compiled and installed ### Operating System Ubuntu 22.04 ### Additional context _No response_
Unexpected result when casting integer to boolean in comparison
https://api.github.com/repos/MonetDB/MonetDB/issues/7555/comments
0
2024-07-21T05:33:26Z
2024-07-21T09:47:47Z
https://github.com/MonetDB/MonetDB/issues/7555
2,421,230,247
7,555
[ "MonetDB", "MonetDB" ]
### Describe the bug Consider the test case below. It is unexpected that the second query returns 1, since the `BETWEEN` expression is evaluated to `false`, and thus the result should be an empty table. ### Reproduction steps ```sql SELECT (1 BETWEEN NULL AND -1) IS NULL; -- false SELECT 1 WHERE ((1 BETWEEN NULL AND -1) IS NULL); --Expected: empty table --Actual: 1 ``` ### Expected behavior As mentioned above. ### MonetDB release 11.52.0 (hg id: 07e6a11) ### Executables source Self compiled and installed ### Operating System Ubuntu 22.04 ### Additional context _No response_
Unexpected result when using range comparison with `NULL`
https://api.github.com/repos/MonetDB/MonetDB/issues/7554/comments
0
2024-07-21T05:05:49Z
2024-07-21T09:47:26Z
https://github.com/MonetDB/MonetDB/issues/7554
2,421,220,292
7,554
[ "MonetDB", "MonetDB" ]
### Describe the bug The following test case crashed the monetdb server. ### Reproduction steps ```sql DROP TABLE IF EXISTS t0 CASCADE; DROP TABLE IF EXISTS t1 CASCADE; CREATE TABLE t0 (c0 VARCHAR(500) , c1 INT ) ; CREATE TABLE t1 (c0 BOOLEAN ) ; SELECT * FROM t1 INNER JOIN t0 ON STARTSWITH(((t0.c1)>=(t0.c0)), t1.c0, ('a' NOT LIKE(t0.c1))); -- unexpected end of file ``` ### Expected behavior No crash. ### MonetDB release 11.52.0 6ed27ae ### Executables source Self compiled and installed ### Operating System Ubuntu 22.04 ### Additional context Build from source https://www.monetdb.org/documentation-Aug2024/dev-guide/installation-from-source/#summary Backtrace: ``` #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140397876250176) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=140397876250176) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=140397876250176, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x00007fb0fed48476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x00007fb0fed2e7f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x00007fb0fed2e71b in __assert_fail_base ( fmt=0x7fb0feee3130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7fb0fe349747 "sql->session->status == -10", file=0x7fb0fe349100 "/app/MonetDB/sql/backends/monet5/rel_bin.c", line=3271, function=<optimized out>) at ./assert/assert.c:92 #6 0x00007fb0fed3fe96 in __GI___assert_fail ( assertion=0x7fb0fe349747 "sql->session->status == -10", file=0x7fb0fe349100 "/app/MonetDB/sql/backends/monet5/rel_bin.c", line=3271, function=0x7fb0fe34a248 <__PRETTY_FUNCTION__.41> "rel2bin_join") at ./assert/assert.c:101 #7 0x00007fb0fe064fdd in rel2bin_join () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #8 0x00007fb0fe07a425 in subrel_bin () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #9 0x00007fb0fe06ae75 in rel2bin_project () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #10 0x00007fb0fe07a569 in subrel_bin () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #11 0x00007fb0fe07a9c3 in output_rel_bin () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #12 0x00007fb0fe0b051e in sql_relation2stmt () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #13 0x00007fb0fe0b0753 in backend_dumpstmt_body () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #14 0x00007fb0fe0b0b3a in backend_dumpstmt () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #15 0x00007fb0fe03d7ed in SQLparser_body () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #16 0x00007fb0fe03e3d1 in SQLparser () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #17 0x00007fb0fe03e570 in SQLengine_ () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #18 0x00007fb0fe03e646 in SQLengine () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #19 0x00007fb10058fd5f in runScenarioBody () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #20 0x00007fb10058fe6d in runScenario () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #21 0x00007fb100591eaf in MSserveClient () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #22 0x00007fb1005916ba in MSscheduleClient () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #23 0x00007fb100693e22 in doChallenge () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #24 0x00007fb0ff84b019 in thread_starter () from /usr/local/lib/libbat-11.52.0.so.28 #25 0x00007fb0fed9aac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #26 0x00007fb0fee2ba04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 ```
Assertion failure when using `INNER JOIN` on `STARTSWITH`
https://api.github.com/repos/MonetDB/MonetDB/issues/7553/comments
0
2024-07-17T06:38:35Z
2024-07-18T18:29:52Z
https://github.com/MonetDB/MonetDB/issues/7553
2,412,782,289
7,553
[ "MonetDB", "MonetDB" ]
### Describe the bug The third SELECT statement should return an empty table because the condition `((NULL NOT BETWEEN 1 AND 2) = (t0.c1 NOT IN (t0.c1)))` evaluates to NULL, and no rows should satisfy this condition. ### Reproduction steps ```sql DROP TABLE IF EXISTS t0 CASCADE; CREATE TABLE IF NOT EXISTS t0 ( c1 INT ); INSERT INTO t0(c1) VALUES (1); SELECT * FROM t0; -- 1 SELECT ((NULL NOT BETWEEN 1 AND 2)=(t0.c1 NOT IN (t0.c1))) FROM t0; -- null SELECT * FROM t0 WHERE ((NULL NOT BETWEEN 1 AND 2)=(t0.c1 NOT IN (t0.c1))); -- Expected: empty table -- Actual: 1 ``` ### Expected behavior As mentioned above. ### MonetDB release 11.52.0 6ed27ae ### Executables source Self compiled and installed ### Operating System Ubuntu 22.04 ### Additional context _No response_
Unexpected result when using `NULL` constant in comparison
https://api.github.com/repos/MonetDB/MonetDB/issues/7552/comments
1
2024-07-17T06:22:23Z
2024-07-17T10:50:40Z
https://github.com/MonetDB/MonetDB/issues/7552
2,412,755,619
7,552
[ "MonetDB", "MonetDB" ]
### Describe the bug For a user which does not have monetdb role/privilege I get a runtime error: `STATISTICS: access denied for test to column 'id' on table 'sys.schemas'` when running query: `SELECT * FROM sys.statistics;` or `SELECT * FROM sys.statistics();` or `SELECT * FROM information_schema.tables;` ### Reproduction steps start mclient with user monetdb. execute statement: `create user test with password 'test' name 'test'; ` start another mclient with user test. execute query `SELECT * FROM sys.statistics;` next you will get the runtime error message. execute query `SELECT * FROM sys.statistics();` next you will get the runtime error message. execute query `SELECT * FROM information_schema.tables;` next you will get the runtime error message. ### Expected behavior Shouldn't get the runtime error. ### MonetDB release Aug2024 (11.51.0) ### Executables source Self compiled and installed ### Operating System Fedora ### Additional context _No response_
non-admin user can no longer query sys.statistics or information_schema.tables
https://api.github.com/repos/MonetDB/MonetDB/issues/7550/comments
0
2024-07-04T17:23:21Z
2024-07-08T10:50:11Z
https://github.com/MonetDB/MonetDB/issues/7550
2,391,250,606
7,550
[ "MonetDB", "MonetDB" ]
### Is your feature request related to a problem? Describe it Session information is currently only visible for users with monetdb/admin privilege or explicitly granted select on sys.sessions privilege. However if you grant select on sys.sessions privilege to a user, the user can see information of all sessions, which is often too much. We need a finer control. It would be better if the non-admin user could query sys.sessions view but returning only information of the current session. Currently it returns error: `SELECT: access denied for test to view 'sys.sessions'`. Note that a non-admin user can do: `select current_sessionid();` or `call sys.setmemorylimit(500);` or `call sys.setquerytimeout(8);` or `call sys.setsessiontimeout(30);` or `call sys.setworkerlimit(16);`, but by default cannot query those values of the current session. This is inconsistent. ### Describe the solution you'd like to see implemented The system function sys.sessions() should check if the current user has monetdb/admin role privilege. If not, it should return information of the current session only, instead of the error: `SELECT: insufficient privileges for table returning function 'sessions'()`. Next, the system view sys.sessions should have `grant select on sys.sessions to public` added. ### Describe alternatives you've considered `grant select on sys.sessions to userX,` gives too much information (all session) to the user. We need a finer control. ### Additional context By allowing users to query their own session info, we also reduce admin task to grant select privilege for each user that needs it.
Allow user to query its own session information by default
https://api.github.com/repos/MonetDB/MonetDB/issues/7549/comments
0
2024-07-04T14:18:08Z
2024-07-09T08:00:44Z
https://github.com/MonetDB/MonetDB/issues/7549
2,390,983,024
7,549
[ "MonetDB", "MonetDB" ]
### Describe the bug When looking at the `ps` output for `mserver5`, I see this strange format for settings: `--set=key value` (adding newlines here to improve readability): ``` mserver5 --dbpath=dbfarm/x --set=merovingian_uri mapi:monetdb://tachyon.hq.spinque.com:50100/x --set=mapi_listenaddr none --set=mapi_usock dbfarm/x/.mapi.sock --set=monet_vault_key dbfarm/x/.vaultkey --set=gdk_nr_threads 32 --set=tablet_threads 32 --set=max_clients 64 --set=sql_optimizer sequential_pipe --set=embedded_py 3 ``` Is this caused by the OS or by MonetDB? I noticed the code in `forkmserver.c` consistently uses yet another strange format: `--set=key=value` (2 `=`). I'm sure there is some good reason for this, but I wonder if it causes the issue I describe. Why is this relevant? It's not a major problem, but it would be handy to have it displayed correctly (this format isn't valid). For example, to copy&paste it as an argument to `valgrind`. ### Reproduction steps ``` ps ax | grep mserver5 ``` ### Expected behavior Settings in the form: `--set key=value` ### MonetDB release Dec2023 ### Executables source Self compiled and installed ### Operating System Fedora 40 ### Additional context _No response_
Wrong format of settings in ps cmdline
https://api.github.com/repos/MonetDB/MonetDB/issues/7548/comments
2
2024-07-04T11:00:29Z
2024-07-08T08:14:27Z
https://github.com/MonetDB/MonetDB/issues/7548
2,390,583,288
7,548
[ "MonetDB", "MonetDB" ]
### Describe the bug Cannot drop a trigger created with before or after login event. It causes crash of mserver. ### Reproduction steps select name from sys.triggers; -- 1 row: system_update_schemas CREATE OR REPLACE TRIGGER lt1 BEFORE LOGIN SET SCHEMA tmp; select name from sys.triggers; -- 2 rows: system_update_schemas, lt1 CREATE OR REPLACE TRIGGER lt2 AFTER LOGIN SET SCHEMA profiler; select name from sys.triggers; -- 3 rows: system_update_schemas, lt1, lt2 drop trigger lt2; drop trigger "lt1"; -- after drop we should be able to create trigger again CREATE OR REPLACE TRIGGER lt1 BEFORE LOGIN SET SCHEMA tmp; drop trigger "lt1"; -- crash of mserver5 ### Expected behavior No crash. It should be possible to create and drop login triggers repeatedly. ### MonetDB release Dec2023_SP4 ### Executables source Self compiled and installed ### Operating System Fedora ### Additional context _No response_
drop login trigger causes server crash
https://api.github.com/repos/MonetDB/MonetDB/issues/7547/comments
0
2024-07-02T13:06:43Z
2024-07-07T12:53:40Z
https://github.com/MonetDB/MonetDB/issues/7547
2,386,208,157
7,547
[ "MonetDB", "MonetDB" ]
### Describe the bug When monetdbd starts two mserver5 processes on different databases, the second inherits the file descriptors created for the first. ### Reproduction steps monetdb start database1 monetdb start database2 check used file descriptors of the two mserver5 processes created and note that the second one has more than the first. ### Expected behavior _No response_ ### MonetDB release Dec2023-SP2 ### Executables source Release packages ### Operating System Linux ### Additional context _No response_
monetdbd leaks file descriptors when starting mserver5.
https://api.github.com/repos/MonetDB/MonetDB/issues/7546/comments
1
2024-06-27T21:23:18Z
2024-07-09T08:42:38Z
https://github.com/MonetDB/MonetDB/issues/7546
2,379,112,395
7,546
[ "MonetDB", "MonetDB" ]
**Describe the bug** The following test case crashed the monetdb server. **To Reproduce** ```sql DROP TABLE IF EXISTS t0 CASCADE; CREATE TABLE t0 (c0 VARCHAR, c1 VARCHAR ) ; CREATE UNIQUE INDEX i0 ON t0(c0 ); CREATE VIEW v0(c0) AS SELECT t0.c1 FROM t0 GROUP BY (CASE (NULL) WHEN t0.c1 THEN t0.c0 END ); -- unexpected end of file ``` **Expected behavior** No crash. **Screenshots** backtrace (using gdb): ``` #0 0x00007ff6c8a0cdb8 in group_by_pk_project_uk_cond () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #1 0x00007ff6c8a0e89e in rel_column_ref () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #2 0x00007ff6c8a2463d in rel_value_exp2 () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #3 0x00007ff6c8a25016 in rel_value_exp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #4 0x00007ff6c8a25148 in column_exp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #5 0x00007ff6c8a25a2d in rel_column_exp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #6 0x00007ff6c8a26cf3 in rel_select_exp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #7 0x00007ff6c8a2782a in rel_query () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #8 0x00007ff6c8a2950e in rel_subquery () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #9 0x00007ff6c8a29708 in rel_selects () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #10 0x00007ff6c8a29827 in schema_selects () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #11 0x00007ff6c8a3e1e3 in rel_create_view () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #12 0x00007ff6c8a457cf in rel_schemas () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #13 0x00007ff6c8a05a89 in rel_semantic () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #14 0x00007ff6c8821e13 in sql_symbol2relation () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #15 0x00007ff6c884f922 in SQLparser_body () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #16 0x00007ff6c8850a16 in SQLparser () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #17 0x00007ff6c8850bb5 in SQLengine_ () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #18 0x00007ff6c8850c8b in SQLengine () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #19 0x00007ff6cadb4009 in runScenarioBody () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #20 0x00007ff6cadb4117 in runScenario () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #21 0x00007ff6cadb6159 in MSserveClient () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #22 0x00007ff6cadb5964 in MSscheduleClient () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #23 0x00007ff6caeb95ab in doChallenge () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #24 0x00007ff6ca06216c in thread_starter () from /usr/local/lib/libbat-11.52.0.so.28 #25 0x00007ff6c95b1ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #26 0x00007ff6c9642a04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 ``` **Software versions** Build from source https://www.monetdb.org/documentation-Aug2024/dev-guide/installation-from-source/#summary: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.52.0 (hg id: 53f9d56) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @49c6d00b8d79 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Crash when creating view with `GROUP BY`
https://api.github.com/repos/MonetDB/MonetDB/issues/7545/comments
1
2024-06-26T16:30:31Z
2024-07-01T10:02:14Z
https://github.com/MonetDB/MonetDB/issues/7545
2,375,786,203
7,545
[ "MonetDB", "MonetDB" ]
**Describe the bug** Consider the following test cases. The `STARTSWITH` function checks if the string in `t0.c0` starts with the character 'a' with case sensitive, and it should be evaluated as `true`, as shown in the second query. Thus, the third query should return 2 rows. **To Reproduce** ```sql DROP TABLE IF EXISTS t0 CASCADE; DROP TABLE IF EXISTS t1 CASCADE; CREATE TABLE t0 (c0 VARCHAR) ; CREATE TABLE t1 (c1 BOOLEAN) ; INSERT INTO t0(c0) VALUES ('a'); INSERT INTO t1(c1) VALUES (true), (true); SELECT * FROM t0, t1; -- a true, a true SELECT STARTSWITH(t0.c0, 'a', t1.c1) FROM t0, t1; -- true, true SELECT * FROM t0, t1 WHERE STARTSWITH(t0.c0, 'a', t1.c1); -- Expected: a true, a true (2 rows) -- Actual: a true (1 row) ``` **Expected behavior** As mentioned above. **Screenshots** N/A **Software versions** Build from source: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.52.0 (hg id: 53f9d56) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @49c6d00b8d79 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Unexpected result when using `STARTSWITH`
https://api.github.com/repos/MonetDB/MonetDB/issues/7544/comments
2
2024-06-26T15:49:28Z
2024-08-02T10:54:10Z
https://github.com/MonetDB/MonetDB/issues/7544
2,375,702,817
7,544
[ "MonetDB", "MonetDB" ]
**Describe the bug** Consider the following test cases. I suppose the first query is unexpected: it should return `false` but not `null`. The query with a `NOT` predicate could return the expected result. **To Reproduce** ```sql SELECT ((NULL NOT IN ('a')) IS NOT DISTINCT FROM true); -- Expected: false -- Actual: null SELECT (NOT ((NULL NOT IN ('a')) IS NOT DISTINCT FROM true)); -- true ``` **Expected behavior** As mentioned above. **Screenshots** N/A **Software versions** Build from source: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.52.0 (hg id: 53f9d56) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @49c6d00b8d79 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Unexpected result when using `IS DISTINCT FROM` with constants
https://api.github.com/repos/MonetDB/MonetDB/issues/7543/comments
0
2024-06-26T15:31:28Z
2024-07-07T12:46:35Z
https://github.com/MonetDB/MonetDB/issues/7543
2,375,666,633
7,543
[ "MonetDB", "MonetDB" ]
**Describe the bug** Using 11.49.9 and the 3.3 JDBC driver, this query causes a critical error on the server and a null ResultSet in Java. **To Reproduce** Execute this query with JDBC. I've done it in a throwaway main class, where you can see the exception, but the same happens in SQuirreL, for example. No special connection settings or anything. ``` sql with "e" as ( select 2 as "f" ) select 3 as "z" from ( select "b"."x" from ( select 2 as "y" from "e" ) as "a" left outer join ( select 2 as "x" ) as "b" on 1 = 1 ) as "c" order by "z" desc limit 1 ``` I don't think it matters what is in the dbfarm, as the query doesn't read any tables. Note this query is vastly simplified from the original failing query, trimmed down as much as possible through iteration, to isolate the minimal failing query. As such it no longer makes sense as a query, but shouldn't behave like this. Seen in `merovingian.log`: ``` 2024-06-25 16:53:40 ERR xxx[3097]: #client0309: exp_bin: CRITICAL: Could not find (null).z 2024-06-25 16:53:40 ERR xxx[3097]: #client0309: exp_bin: ERROR: Query: 'with "e" as ( select 2 as "f" ) ``` **Expected behavior** To get a ResultSet. With a single cell with value 3. Note this is the outcome with 11.43. **Software versions** - MonetDB version number 11.49.9 - JDBC driver 3.3 jre8 - OS and version: Ubuntu 20.04.4 LTS - Installed from apt Please let me know if there is anything I do to help.
Nested query triggers an assert
https://api.github.com/repos/MonetDB/MonetDB/issues/7542/comments
4
2024-06-25T15:55:43Z
2024-07-10T07:46:25Z
https://github.com/MonetDB/MonetDB/issues/7542
2,373,052,272
7,542
[ "MonetDB", "MonetDB" ]
**Describe the bug** Consider the following test cases. I suppose the first query is unexpected: it should return only one row, as the `UNION ALL` of three queries returns only one row `1 false`. Besides, if first insert `true` in table `t0` and then `false`, the first query returns only one row as expected. **To Reproduce** ```sql DROP TABLE IF EXISTS t0 CASCADE; DROP TABLE IF EXISTS t1 CASCADE; CREATE TABLE t0 (c0 BOOLEAN); CREATE TABLE t1 (c1 INT) ; INSERT INTO t1(c1) VALUES (1); INSERT INTO t0(c0) VALUES (false); -- should first insert false then true INSERT INTO t0(c0) VALUES (true); SELECT * FROM t1 LEFT JOIN t0 ON LEVENSHTEIN(t0.c0, true); -- 1 false, 1, true (unexpected) SELECT * FROM t1 LEFT JOIN t0 ON LEVENSHTEIN(t0.c0, true) WHERE t0.c0 UNION ALL SELECT * FROM t1 LEFT JOIN t0 ON LEVENSHTEIN(t0.c0, true) WHERE (NOT t0.c0) UNION ALL SELECT * FROM t1 LEFT JOIN t0 ON LEVENSHTEIN(t0.c0, true) WHERE ((t0.c0) IS NULL); -- 1 false SELECT LEVENSHTEIN(true, true); -- 0 SELECT LEVENSHTEIN(t0.c0, true) FROM t0; -- 4, 4 (I guess it's unexpected and the root cause) ``` **Expected behavior** As mentioned above. **Screenshots** N/A **Software versions** Build from source: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.52.0 (hg id: 736987f) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @2195e8c5ad70 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Unexpected result when using `LEVENSHTEIN`
https://api.github.com/repos/MonetDB/MonetDB/issues/7541/comments
0
2024-06-17T15:09:29Z
2024-07-09T08:42:37Z
https://github.com/MonetDB/MonetDB/issues/7541
2,357,589,844
7,541
[ "MonetDB", "MonetDB" ]
**Describe the bug** The following test case crashed the monetdb server. **To Reproduce** ```sql DROP TABLE IF EXISTS t0 CASCADE; DROP TABLE IF EXISTS t1 CASCADE; CREATE TABLE t1 (c0 BOOLEAN , c1 INT); CREATE TABLE t0 (c0 BOOLEAN , c1 INT); INSERT INTO t1(c0) VALUES (true); INSERT INTO t1(c0) VALUES (false); INSERT INTO t0(c1, c0) VALUES (false, true); INSERT INTO t0(c0) VALUES (false); SELECT * FROM t1, t0 WHERE STARTSWITH(t1.c1, '', t0.c1); -- unexpected end of file ``` **Expected behavior** No crash. **Screenshots** backtrace (using gdb): ```#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=139835803805248) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=139835803805248) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=139835803805248, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x00007f2e188ff476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x00007f2e188e57f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x00007f2e188e571b in __assert_fail_base (fmt=0x7f2e18a9a130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f2e1a2d14df "BATcount(c) == 1", file=0x7f2e1a2d0ba8 "/app/MonetDB/monetdb5/modules/atoms/str.c", line=2878, function=<optimized out>) at ./assert/assert.c:92 #6 0x00007f2e188f6e96 in __GI___assert_fail (assertion=0x7f2e1a2d14df "BATcount(c) == 1", file=0x7f2e1a2d0ba8 "/app/MonetDB/monetdb5/modules/atoms/str.c", line=2878, function=0x7f2e1a2d2eb8 <__PRETTY_FUNCTION__.0> "ignorecase") at ./assert/assert.c:101 #7 0x00007f2e1a10d32f in ignorecase () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #8 0x00007f2e1a10d635 in STRstartswithjoin () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #9 0x00007f2e1a0c8249 in runMALsequence () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #10 0x00007f2e1a0cc1a2 in DFLOWworker () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #11 0x00007f2e193999d3 in thread_starter () from /usr/local/lib/libbat-11.52.0.so.28 #12 0x00007f2e18951ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #13 0x00007f2e189e2a04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 ``` **Software versions** Build from source https://www.monetdb.org/documentation-Aug2024/dev-guide/installation-from-source/#summary: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.52.0 (hg id: 736987f) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @2195e8c5ad70 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Assertion failure when using `STARTSWITH`
https://api.github.com/repos/MonetDB/MonetDB/issues/7540/comments
1
2024-06-17T10:51:37Z
2024-06-27T13:20:31Z
https://github.com/MonetDB/MonetDB/issues/7540
2,357,034,470
7,540
[ "MonetDB", "MonetDB" ]
**Describe the bug** The following test case crashed the monetdb server. **To Reproduce** ```sql DROP TABLE IF EXISTS t0 CASCADE; CREATE TABLE t0 (c0 INT); SELECT * FROM t0 WHERE (SIN(1) IS DISTINCT FROM NOT 1); -- unexpected end of file ``` **Expected behavior** No crash. **Screenshots** backtrace (using gdb): ``` #0 0x00007f1b494dcc6b in rel_or () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #1 0x00007f1b494935b9 in rel_logical_exp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #2 0x00007f1b494a3e3e in rel_where_groupby_nodes () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #3 0x00007f1b494a4fdc in rel_select_exp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #4 0x00007f1b494a5bbe in rel_query () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #5 0x00007f1b494a78a2 in rel_subquery () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #6 0x00007f1b494a7a9c in rel_selects () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #7 0x00007f1b49483c7f in rel_semantic () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #8 0x00007f1b4929fdff in sql_symbol2relation () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #9 0x00007f1b492cd8e2 in SQLparser_body () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #10 0x00007f1b492ce9d6 in SQLparser () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #11 0x00007f1b492ceb75 in SQLengine_ () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #12 0x00007f1b492cec4b in SQLengine () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #13 0x00007f1b4b7c8015 in runScenarioBody () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #14 0x00007f1b4b7c8123 in runScenario () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #15 0x00007f1b4b7ca165 in MSserveClient () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #16 0x00007f1b4b7c9970 in MSscheduleClient () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #17 0x00007f1b4b8cd63c in doChallenge () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #18 0x00007f1b4aa76b0b in thread_starter () from /usr/local/lib/libbat-11.52.0.so.28 #19 0x00007f1b4a02eac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #20 0x00007f1b4a0bfa04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 ``` **Software versions** Build from source https://www.monetdb.org/documentation-Aug2024/dev-guide/installation-from-source/#summary: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.52.0 (hg id: e502e3d) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @18b41d5ad960 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Crash when using `IS DISTINCT FROM` with `SIN`
https://api.github.com/repos/MonetDB/MonetDB/issues/7539/comments
0
2024-06-15T12:44:03Z
2024-06-27T13:20:31Z
https://github.com/MonetDB/MonetDB/issues/7539
2,354,832,441
7,539
[ "MonetDB", "MonetDB" ]
**Describe the bug** The decimal value of a calculation is incorrect. **To Reproduce** Just do what is shown in the image below (I'm using the MonetDB client - mclient.bat): ![image](https://github.com/MonetDB/MonetDB/assets/106282409/536613c6-fbee-4dba-b974-6b7d71804cda) The difference between the two SQL commands is only the limit clause that exists in one of them and not in the other. **Expected behavior** The calculation result must be the same for both SQL commands. It should be 36.200. **Software versions** - MonetDB version number: 11.49.9. - OS and version: Windows 11 64 bits. - Installed from: https://www.monetdb.org/downloads/Windows/Latest/MonetDB5-SQL-Installer-x86_64.msi.
BUG with decimal values
https://api.github.com/repos/MonetDB/MonetDB/issues/7538/comments
1
2024-06-14T13:07:35Z
2024-06-27T13:20:30Z
https://github.com/MonetDB/MonetDB/issues/7538
2,353,344,785
7,538
[ "MonetDB", "MonetDB" ]
**Describe the bug** MonetDB crashes with a SIGSEGV due to a null pointer dereference when using prepared statements with multiple connections and DDL operations. **To Reproduce** Repro SQL -- note that this assumes that the prepared statement id will start at 0 - adjust the exec statement below as required. _Connection 1:_ drop function if exists test_epoch_ms; drop view if exists v3; drop view if exists v4; drop procedure if exists test_pop(); drop table if exists t1; drop table if exists t2; drop table if exists t3; drop table if exists t4; create function test_epoch_ms(ts timestamp) returns bigint external name mtime.epoch_ms; create table t1 (c1 integer, c2 timestamp); create table t2 (c1 integer, c2 timestamp); create table t3 (c1 integer, c2 timestamp); create table t4 (c1 integer, c2 timestamp); create view v3 as select * from t1 union all select * from t2 union all select * from t3; create view v4 as select * from t1 union all select * from t2 union all select * from t3 union all select * from t4; create procedure test_pop() begin declare i int; set i = 0; while i < 10000 do insert into t1 values (i, current_timestamp()); insert into t2 values (10000 + i, current_timestamp()); insert into t3 values (20000 + i, current_timestamp()); insert into t4 values (30000 + i, current_timestamp()); set i = i + 1; end while; end; call test_pop(); drop procedure if exists test_pop(); alter table t1 set read only; alter table t2 set read only; alter table t3 set read only; alter table t4 set read only; prepare with agg1(agg1_avg) as (select avg(v31.c1) from v3 as v31 join v3 v32 on 1) select avg((agg1.agg1_avg + test_epoch_ms(v4.c2))) as c2 from agg1 join v4 on ?; exec 0(1); _While the above is running on Connection 2:_ drop view if exists v4; drop table if exists t4; _As soon as a prompt is available on Connection 1:_ exec 0(1); **Expected behavior** Not crashing and failing the prepared statement query. **Software versions** - MonetDB version number 11.45.13 and 11.49.9 - OS and version: Debian 10 Buster, Debian 11 Bullseye - Installed from release package **Additional context** gdb of core (edited to add core monetdb version is 11.45.13): ``` Core was generated by `/usr/bin/mserver5 --dbpath=/data/dbfarm/######### --set=merovingian_uri mapi:mo'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fb85a978e34 in find_sql_column (t=t@entry=0x0, cname=cname@entry=0x7fb78e5152d0 "b#################") at ./sql/storage/sql_catalog.c:246 246 node *n = ol_find_name(t->columns, cname); [Current thread is 1 (Thread 0x7fb84d7ec700 (LWP 2474))] >>> info threads Id Target Id Frame * 1 Thread 0x7fb84d7ec700 (LWP 2474) 0x00007fb85a978e34 in find_sql_column (t=t@entry=0x0, cname=cname@entry=0x7fb78e5152d0 "b#################")") at ./sql/storage/sql_catalog.c:246 2 Thread 0x7fb84bfe0700 (LWP 2486) 0x00007fb85a978e34 in find_sql_column (t=t@entry=0x0, cname=cname@entry=0x7fb78e5152a0 "asig_netgroup") at ./sql/storage/sql_catalog.c:246 3 Thread 0x7fb85b27e980 (LWP 2309) 0x00007fb85e477bf0 in __GI___nanosleep (requested_time=requested_time@entry=0x7ffc363684b0, remaining=remaining@entry=0x0) at ../sysdeps/unix/sysv/linux/nanosleep.c:28 4 Thread 0x7fb84bddf700 (LWP 2487) 0x00007fb85a978e34 in find_sql_column (t=t@entry=0x0, cname=cname@entry=0x7fb78e514ff0 "asig_invite") at ./sql/storage/sql_catalog.c:246 5 Thread 0x7fb84ddef700 (LWP 2471) __GI___fxstat (vers=vers@entry=1, fd=fd@entry=13, buf=buf@entry=0x7fb84ddee4e0) at ../sysdeps/unix/sysv/linux/wordsize-64/fxstat.c:35 6 Thread 0x7fb84e3f2700 (LWP 2468) __GI___fxstat (vers=vers@entry=1, fd=fd@entry=11, buf=buf@entry=0x7fb84e3f14e0) at ../sysdeps/unix/sysv/linux/wordsize-64/fxstat.c:35 7 Thread 0x7fb84e1f1700 (LWP 2469) __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 8 Thread 0x7fb84d1e9700 (LWP 2477) __libc_disable_asynccancel () at ../sysdeps/unix/sysv/linux/x86_64/cancellation.S:85 9 Thread 0x7fb84dff0700 (LWP 2470) 0x00007fb85e477d0e in __libc_open64 (file=file@entry=0x7fb81000c3a0 "/data/dbfarm/EquinoxVP/bat/52/5267.tail2", oflag=oflag@entry=524290) at ../sysdeps/unix/sysv/linux/open64.c:48 10 Thread 0x7fb84cfe8700 (LWP 2478) 0x00007fb85e58531c in q_dequeue (q=0x55d8513ce9c0, cntxt=cntxt@entry=0x0) at ./monetdb5/mal/mal_dataflow.c:261 11 Thread 0x7fb84cde7700 (LWP 2479) 0x00007fb85a979eb1 in find_name (os=0x55d850fc7330, name=name@entry=0x7fb78e64c900 "c##########") at ./sql/storage/objectset.c:703 12 Thread 0x7fb84cbe6700 (LWP 2480) 0x00007fb85e572c07 in initialize_tl_client_key () at ./monetdb5/mal/mal.c:69 13 Thread 0x7fb84d5eb700 (LWP 2475) futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x7fb85e7b7d78 <workers+105592>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 14 Thread 0x7fb84c5e3700 (LWP 2483) 0x00007fb85e4775d7 in __close (fd=fd@entry=15) at ../sysdeps/unix/sysv/linux/close.c:27 15 Thread 0x7fb84c3e2700 (LWP 2484) 0x00007fb85e3946f9 in __GI___poll (fds=fds@entry=0x7fb84c3e1780, nfds=nfds@entry=1, timeout=timeout@entry=0) at ../sysdeps/unix/sysv/linux/poll.c:29 16 Thread 0x7fb84bbde700 (LWP 2488) __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 17 Thread 0x7fb84c7e4700 (LWP 2482) __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 18 Thread 0x7fb84c1e1700 (LWP 2485) rename (old=old@entry=0x7fb7f8000c50 "/data/dbfarm/EquinoxVP/bat/57/5740.tail1.new", new=new@entry=0x7fb7f8001300 "/data/dbfarm/EquinoxVP/bat/57/5740.tail1") at ../sysdeps/unix/sysv/linux/rename.c:29 19 Thread 0x7fb84b3da700 (LWP 2492) __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 20 Thread 0x7fb84afd8700 (LWP 2494) __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 21 Thread 0x7fb84b7dc700 (LWP 2490) __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 22 Thread 0x7fb84a9d5700 (LWP 2497) __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 23 Thread 0x7fb848fc9700 (LWP 72690) 0x00007fb85e399cd3 in __GI___mmap64 (offset=0, fd=12, flags=1, prot=3, len=31064064, addr=0x0) at ../sysdeps/unix/sysv/linux/mmap64.c:59 24 Thread 0x7fb84a3d2700 (LWP 2532) 0x00007fb85e3946f9 in __GI___poll (fds=fds@entry=0x7fb84a3d1c10, nfds=nfds@entry=1, timeout=100) at ../sysdeps/unix/sysv/linux/poll.c:29 25 Thread 0x7fb84c9e5700 (LWP 2481) __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 26 Thread 0x7fb84d3ea700 (LWP 2476) 0x00007fb85e2f893a in buffered_vfprintf (s=s@entry=0x7fb85e461680 <_IO_2_1_stderr_>, format=format@entry=0x7fb85ee3cafb "#%s%s%s: %s: %s: %s%s%s\n", args=args@entry=0x7fb84d3e90c0) at vfprintf.c:2301 27 Thread 0x7fb84b9dd700 (LWP 2489) 0x00007fb85e399cd3 in __GI___mmap64 (offset=0, fd=7, flags=1, prot=3, len=3932160, addr=0x0) at ../sysdeps/unix/sysv/linux/mmap64.c:59 28 Thread 0x7fb85adf7700 (LWP 2342) 0x00007fb85e477bf0 in __GI___nanosleep (requested_time=requested_time@entry=0x7fb85adf6bd0, remaining=remaining@entry=0x0) at ../sysdeps/unix/sysv/linux/nanosleep.c:28 29 Thread 0x7fb84a5d3700 (LWP 2531) 0x00007fb85e477bf0 in __GI___nanosleep (requested_time=requested_time@entry=0x7fb84a5d2bf0, remaining=remaining@entry=0x0) at ../sysdeps/unix/sysv/linux/nanosleep.c:28 30 Thread 0x7fb84abd6700 (LWP 2496) __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 31 Thread 0x7fb84dbee700 (LWP 2472) 0x00007fb85a978e34 in find_sql_column (t=t@entry=0x0, cname=cname@entry=0x7fb78e5157f0 "sig_connected") at ./sql/storage/sql_catalog.c:246 32 Thread 0x7fb81d5f9700 (LWP 40659) futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x7fb78e6fa520) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 33 Thread 0x7fb849fd0700 (LWP 2617) 0x00007fb85e3946f9 in __GI___poll (fds=fds@entry=0x7fb849fcd980, nfds=nfds@entry=1, timeout=50) at ../sysdeps/unix/sysv/linux/poll.c:29 34 Thread 0x7fb84add7700 (LWP 2495) __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 35 Thread 0x7fb84a7d4700 (LWP 2498) __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:103 36 Thread 0x7fb84a1d1700 (LWP 2533) 0x00007fb85e477bf0 in __GI___nanosleep (requested_time=requested_time@entry=0x7fb84a1d0c50, remaining=remaining@entry=0x0) at ../sysdeps/unix/sysv/linux/nanosleep.c:28 37 Thread 0x7fb84b1d9700 (LWP 2493) 0x00007fb85a978e34 in find_sql_column (t=t@entry=0x0, cname=cname@entry=0x7fb78e5154e0 "bsig_netgroup") at ./sql/storage/sql_catalog.c:246 38 Thread 0x7fb84b5db700 (LWP 2491) 0x00007fb85a978e34 in find_sql_column (t=t@entry=0x0, cname=cname@entry=0x7fb78e515270 "asig_carrier_group") at ./sql/storage/sql_catalog.c:246 39 Thread 0x7fb84e5f3700 (LWP 2467) 0x00007fb85a978e34 in find_sql_column (t=t@entry=0x0, cname=cname@entry=0x7fb78e5158c0 "sig_end") at ./sql/storage/sql_catalog.c:246 40 Thread 0x7fb84d9ed700 (LWP 2473) 0x00007fb85a978e34 in find_sql_column (t=t@entry=0x0, cname=cname@entry=0x7fb78e515540 "lcr_zone") at ./sql/storage/sql_catalog.c:246 >>> backtrace #0 0x00007fb85a978e34 in find_sql_column (t=t@entry=0x0, cname=cname@entry=0x7fb78e5152d0 "b#################")") at ./sql/storage/sql_catalog.c:246 #1 0x00007fb85a9bcab5 in mvc_bind_column (m=<optimized out>, t=0x0, cname=cname@entry=0x7fb78e5152d0 "b#################")") at ./sql/server/sql_mvc.c:953 #2 0x00007fb85a8a3caf in mvc_bind_wrap (cntxt=<optimized out>, mb=0x7fb78e271c00, stk=0x7fb78ef63d10, pci=0x7fb78d0be530) at ./sql/backends/monet5/sql.c:1255 #3 0x00007fb85e582df0 in runMALsequence (cntxt=<optimized out>, mb=<optimized out>, startpc=<optimized out>, stoppc=63, stk=<optimized out>, env=env@entry=0x0, pcicaller=0x0) at ./monetdb5/mal/mal_interpreter.c:681 #4 0x00007fb85e5856f0 in DFLOWworker (T=0x7fb85e7b7dc0 <workers+105664>) at ./monetdb5/mal/mal_dataflow.c:379 #5 DFLOWworker (T=0x7fb85e7b7dc0 <workers+105664>) at ./monetdb5/mal/mal_dataflow.c:298 #6 0x00007fb85ec45a7b in THRstarter (a=0x55d8513c2660) at ./gdk/gdk_utils.c:1658 #7 0x00007fb85ec8a499 in thread_starter (arg=0x55d8511941b0) at ./gdk/gdk_system.c:862 #8 0x00007fb85e46dfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486 #9 0x00007fb85e39f06f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 ```
MonetDB crashes with a SIGSEGV due to a null pointer dereference when using prepared statements
https://api.github.com/repos/MonetDB/MonetDB/issues/7537/comments
3
2024-06-12T14:27:05Z
2024-07-09T08:42:36Z
https://github.com/MonetDB/MonetDB/issues/7537
2,348,922,479
7,537
[ "MonetDB", "MonetDB" ]
**Describe the bug** Dumping from `mclient` into a gzipped file seems broken. **To Reproduce** ```sql create table t as select rand() as i from generate_series(0,50000000); \> t.sql.gz \D t ``` then show the tail: ``` # zcat t.sql.gz | tail gzip: t.sql.gz: unexpected end of file 1007802563 1245897912 1801940107 540157875 1979225340 1820213649 1808923998 1140597692 1751198525 101351# ``` It does work correctly in these two cases: - A non-compressed dump from `mclient` - A compressed dump using `msqldump | gzip` **Software versions** - MonetDB version number 11.49.10 - OS and version: Fedora 40 - self-installed and compiled
Truncated file when dumping a table from mclient into a gzipped file
https://api.github.com/repos/MonetDB/MonetDB/issues/7536/comments
5
2024-06-11T10:55:03Z
2024-07-09T08:42:36Z
https://github.com/MonetDB/MonetDB/issues/7536
2,346,107,296
7,536
[ "MonetDB", "MonetDB" ]
**Describe the bug** The `CREATE VIEW` statement should execute without causing the database to crash. Ideally, the query should gracefully throw an error message. **To Reproduce** ```sql DROP TABLE IF EXISTS t0 CASCADE; DROP TABLE IF EXISTS t1 CASCADE; CREATE TABLE t0(c0 VARCHAR, c1 INTEGER, PRIMARY KEY(c0)); CREATE VIEW v0(c0) AS SELECT ('a'||t0.c0) FROM t0 GROUP BY (CASE t0.c1 WHEN t0.c1 THEN 'a' END ); -- unexpected end of file ``` **Expected behavior** As mentioned above **Screenshots** backtrace (using gdb): ```#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140602744084032) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=140602744084032) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=140602744084032, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x00007fe0b1e7e476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x00007fe0b1e647f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x00007fe0b1e6471b in __assert_fail_base (fmt=0x7fe0b2019130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7fe0b1498221 "gbe->type == e_column", file=0x7fe0b1497af8 "/app/MonetDB/sql/server/rel_select.c", line=1340, function=<optimized out>) at ./assert/assert.c:92 #6 0x00007fe0b1e75e96 in __GI___assert_fail (assertion=0x7fe0b1498221 "gbe->type == e_column", file=0x7fe0b1497af8 "/app/MonetDB/sql/server/rel_select.c", line=1340, function=0x7fe0b149b200 <__PRETTY_FUNCTION__.34> "group_by_pk_project_uk_cond") at ./assert/assert.c:101 #7 0x00007fe0b132d6e0 in group_by_pk_project_uk_cond () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #8 0x00007fe0b132f10c in rel_column_ref () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #9 0x00007fe0b13451df in rel_value_exp2 () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #10 0x00007fe0b1345bb8 in rel_value_exp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #11 0x00007fe0b13380e4 in rel_binop () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #12 0x00007fe0b1345169 in rel_value_exp2 () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #13 0x00007fe0b1345bb8 in rel_value_exp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #14 0x00007fe0b1345cea in column_exp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #15 0x00007fe0b13465cf in rel_column_exp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #16 0x00007fe0b1347895 in rel_select_exp () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #17 0x00007fe0b13483cc in rel_query () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #18 0x00007fe0b134a0b0 in rel_subquery () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #19 0x00007fe0b134a2aa in rel_selects () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #20 0x00007fe0b134a3c9 in schema_selects () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #21 0x00007fe0b135ed85 in rel_create_view () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #22 0x00007fe0b1366371 in rel_schemas () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #23 0x00007fe0b13262d3 in rel_semantic () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #24 0x00007fe0b1142dff in sql_symbol2relation () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #25 0x00007fe0b1170737 in SQLparser_body () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #26 0x00007fe0b117182b in SQLparser () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #27 0x00007fe0b11719ca in SQLengine_ () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #28 0x00007fe0b1171aa0 in SQLengine () from /usr/local/lib/libmonetdbsql-11.52.0.so.14 #29 0x00007fe0b366a015 in runScenarioBody () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #30 0x00007fe0b366a123 in runScenario () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #31 0x00007fe0b366c165 in MSserveClient () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #32 0x00007fe0b366b970 in MSscheduleClient () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #33 0x00007fe0b376f60b in doChallenge () from /usr/local/lib/libmonetdb5-11.52.0.so.35 #34 0x00007fe0b2918a48 in thread_starter () from /usr/local/lib/libbat-11.52.0.so.28 #35 0x00007fe0b1ed0ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #36 0x00007fe0b1f61a04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 ``` **Software versions** Build from source https://www.monetdb.org/documentation-Dec2023/dev-guide/installation-from-source/#summary: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.52.0 (hg id: 0fbb4da) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @6a1bbdadc0f6 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Assertion failure when using `GROUP BY` when `CREATE VIEW`
https://api.github.com/repos/MonetDB/MonetDB/issues/7535/comments
1
2024-06-07T08:38:26Z
2024-08-08T09:22:33Z
https://github.com/MonetDB/MonetDB/issues/7535
2,339,911,891
7,535
[ "MonetDB", "MonetDB" ]
**Describe the bug** Executing a `SELECT` query with a condition using `IS DISTINCT FROM` inside a `WHERE` clause returns an empty result set when it should return a row. The expression should be evaluated to `TRUE` as shown in the second query, and thus the third query should fetch one row in the table **To Reproduce** ```sql DROP TABLE IF EXISTS t0 CASCADE; CREATE TABLE t0(c0 VARCHAR); INSERT INTO t0 (c0) VALUES ('a'); SELECT t0.c0 FROM t0; -- a SELECT (1 AND ('' IS DISTINCT FROM t0.c0)) FROM t0; -- true SELECT t0.c0 FROM t0 WHERE (1 AND ('' IS DISTINCT FROM t0.c0)); -- Expected: a -- Actual: empty table ``` **Expected behavior** As mentioned above. **Screenshots** N/A **Software versions** Build from source: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.52.0 (hg id: 0fbb4da) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @6a1bbdadc0f6 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Unexpected result when using `IS DISTINCT FROM` with `AND`
https://api.github.com/repos/MonetDB/MonetDB/issues/7534/comments
0
2024-06-07T08:26:37Z
2024-06-27T13:20:27Z
https://github.com/MonetDB/MonetDB/issues/7534
2,339,888,734
7,534
[ "MonetDB", "MonetDB" ]
**Describe the bug** DROP SCHEMA x CASCADE drops the schema x and all tables (and anything else) in it, but the bats for the tables are not removed from the database. Those bats will never be used again and are not accessible, but they will just collect dust. **To Reproduce** The test in sql/test/bugs/Tests/copy_into_with_schema.test does this already. Afterwards, manually check the SQL catalog. **Expected behavior** A clear and concise description of what you expected to happen. **Software versions** - Dec2023.
DROP of a schema with CASCADE option drops tables, but bats are not removed.
https://api.github.com/repos/MonetDB/MonetDB/issues/7533/comments
1
2024-06-05T07:36:07Z
2024-06-27T13:20:26Z
https://github.com/MonetDB/MonetDB/issues/7533
2,335,134,019
7,533
[ "MonetDB", "MonetDB" ]
**Describe the bug** When inserting at least 2**32 (sightly over 2 billion) rows, the insert doesn't get logged in the write-ahead log, and hence, the inserted data gets lost on server restart. **To Reproduce** create table t as (select * from sys.generate_series(0, 2147483647)); --succeeds and is retained create table t as (select * from sys.generate_series(0, 2147483648)); --succeeds but is not retained **Expected behavior** data should be retained. **Screenshots** If applicable, add screenshots to help explain your problem. **Software versions** Dec2023.
Inserting more than 2**31 rows at once seems to succeed, but data gets lost on restart.
https://api.github.com/repos/MonetDB/MonetDB/issues/7532/comments
2
2024-06-05T07:28:04Z
2024-06-27T13:20:26Z
https://github.com/MonetDB/MonetDB/issues/7532
2,335,118,474
7,532
[ "MonetDB", "MonetDB" ]
When loading more than 2147483647 data doesn't seem to survive a db restart. create table as select * from generate_series(0, 2500000000); After restart have data. **Software versions** - Dec2023
loading more than 2147483647 rows gives issue.
https://api.github.com/repos/MonetDB/MonetDB/issues/7531/comments
1
2024-06-04T20:26:44Z
2024-07-15T09:48:29Z
https://github.com/MonetDB/MonetDB/issues/7531
2,334,313,710
7,531
[ "MonetDB", "MonetDB" ]
**Describe the bug** The `SELECT` statement should execute without causing the database to crash. Ideally, the query should return no rows or throw an error message. **To Reproduce** ```sql DROP TABLE IF EXISTS t0 CASCADE; CREATE TABLE t0( c1 VARCHAR(500), PRIMARY KEY(c1)); INSERT INTO t0(c1) VALUES (true); SELECT t0.c1 FROM t0 WHERE JAROWINKLER(1, ''); -- unexpected end of file -- or simply SELECT JAROWINKLER(1, ''); ``` **Expected behavior** As mentioned above **Screenshots** backtrace (using gdb), for `JAROWINKLER` in WHERE filter: ``` #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140626516837952) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=140626516837952) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=140626516837952, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x00007fe62d184476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x00007fe62d16a7f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x00007fe62d16a71b in __assert_fail_base (fmt=0x7fe62d31f130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7fe62de8c7b5 "size != 0", file=0x7fe62de8c036 "/app/MonetDB/gdk/gdk_utils.c", line=1733, function=<optimized out>) at ./assert/assert.c:92 #6 0x00007fe62d17be96 in __GI___assert_fail (assertion=0x7fe62de8c7b5 "size != 0", file=0x7fe62de8c036 "/app/MonetDB/gdk/gdk_utils.c", line=1733, function=0x7fe62de8cd60 <__PRETTY_FUNCTION__.12> "GDKmalloc_internal") at ./assert/assert.c:101 #7 0x00007fe62db95355 in GDKmalloc_internal () from /usr/local/lib/libbat-11.50.0.so.28 #8 0x00007fe62db95628 in GDKmalloc () from /usr/local/lib/libbat-11.50.0.so.28 #9 0x00007fe62ea8f05f in str_2_codepointseq () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #10 0x00007fe62ea8f85b in TXTSIMjarowinkler () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #11 0x00007fe62e94a046 in malCommandCall () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #12 0x00007fe62e94d51e in runMALsequence () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #13 0x00007fe62e951166 in DFLOWworker () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #14 0x00007fe62dc1ea48 in thread_starter () from /usr/local/lib/libbat-11.50.0.so.28 #15 0x00007fe62d1d6ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #16 0x00007fe62d267a04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 ``` **Software versions** Build from source https://www.monetdb.org/documentation-Dec2023/dev-guide/installation-from-source/#summary: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.50.0 (hg id: b5434a9) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @a6e5f1e184c3 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Assertion failure when using `JAROWINKLER` with empty string
https://api.github.com/repos/MonetDB/MonetDB/issues/7530/comments
0
2024-06-04T03:24:01Z
2024-06-27T13:20:24Z
https://github.com/MonetDB/MonetDB/issues/7530
2,332,450,093
7,530
[ "MonetDB", "MonetDB" ]
**Describe the bug** See title. **To Reproduce** create table t (i int); insert into t values (0), (null); select min(i) from t; **Expected behavior** Result should be 0. It does in fact return NULL. **Screenshots** If applicable, add screenshots to help explain your problem. **Software versions** Dec2023-SP2.
Finding minimum value in reverse sorted column with NULL values at the end gives wrong result.
https://api.github.com/repos/MonetDB/MonetDB/issues/7529/comments
0
2024-05-31T08:02:00Z
2024-06-27T13:20:23Z
https://github.com/MonetDB/MonetDB/issues/7529
2,327,200,748
7,529
[ "MonetDB", "MonetDB" ]
**Describe the bug** The `SELECT` statement should execute without causing the database to crash. Ideally, the query should return no rows or handle the `NULL` value appropriately according to SQL standards. **To Reproduce** ```sql DROP TABLE IF EXISTS t0 CASCADE; CREATE TABLE t0(c1 VARCHAR); SELECT * FROM t0 WHERE NOT NULL ORDER BY JAROWINKLER('a', NULL) DESC; -- unexpected end of file ``` **Expected behavior** As mentioned above **Screenshots** backtrace (using gdb): ``` #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=139792386434624) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=139792386434624) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=139792386434624, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x00007f23f68c5476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x00007f23f68ab7f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x00007f23f68ab71b in __assert_fail_base (fmt=0x7f23f6a60130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f23f829fbdf "!strNil(s)", file=0x7f23f829fba8 "/app/MonetDB/monetdb5/modules/atoms/str.c", line=147, function=<optimized out>) at ./assert/assert.c:92 #6 0x00007f23f68bce96 in __GI___assert_fail (assertion=0x7f23f829fbdf "!strNil(s)", file=0x7f23f829fba8 "/app/MonetDB/monetdb5/modules/atoms/str.c", line=147, function=0x7f23f82a1a38 <__PRETTY_FUNCTION__.74> "UTF8_strlen") at ./assert/assert.c:101 #7 0x00007f23f80c094b in UTF8_strlen () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #8 0x00007f23f81d1ae0 in TXTSIMjarowinkler () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #9 0x00007f23f808c326 in malCommandCall () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #10 0x00007f23f808f7fe in runMALsequence () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #11 0x00007f23f8093446 in DFLOWworker () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #12 0x00007f23f735fa48 in thread_starter () from /usr/local/lib/libbat-11.50.0.so.28 #13 0x00007f23f6917ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #14 0x00007f23f69a8a04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 ``` **Software versions** Build from source https://www.monetdb.org/documentation-Dec2023/dev-guide/installation-from-source/#summary: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.50.0 (hg id: 389e974) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @efa472fb0bee (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Assertion failure when using `JAROWINKLER` in `ORDER BY` clause
https://api.github.com/repos/MonetDB/MonetDB/issues/7528/comments
0
2024-05-30T10:20:57Z
2024-06-27T13:20:23Z
https://github.com/MonetDB/MonetDB/issues/7528
2,325,296,950
7,528
[ "MonetDB", "MonetDB" ]
**Describe the bug** The `IS DISTINCT FROM` operator in MonetDB returns unexpected results when used with `RIGHT JOIN`. Specifically, the `IS DISTINCT FROM` condition should correctly evaluate to true for NULL values in t1.c1, thus not filtering out the rows from the result set. However, the actual result is an empty table, indicating a potential issue with the IS DISTINCT FROM evaluation in the presence of NULL values during a RIGHT JOIN. **To Reproduce** ```sql DROP TABLE IF EXISTS t0 CASCADE; DROP TABLE IF EXISTS t1 CASCADE; CREATE TABLE t0(c0 INT); CREATE TABLE t1(c1 INT); INSERT INTO t0 (c0) VALUES (0); SELECT * FROM t1 RIGHT JOIN t0 ON true; -- null 0 SELECT (1 IS DISTINCT FROM t1.c1) FROM t1 RIGHT JOIN t0 ON true ; -- true SELECT * FROM t1 RIGHT JOIN t0 ON true WHERE (1 IS DISTINCT FROM t1.c1); -- Expected: null 0 -- Actual: empty table ``` **Expected behavior** As mentioned above. **Screenshots** N/A **Software versions** Build from source: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.50.0 (hg id: 389e974) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @efa472fb0bee (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Unexpected result when using `IS DISTINCT FROM` with `RIGHT JOIN`
https://api.github.com/repos/MonetDB/MonetDB/issues/7527/comments
1
2024-05-30T10:13:24Z
2024-06-27T13:20:22Z
https://github.com/MonetDB/MonetDB/issues/7527
2,325,283,524
7,527
[ "MonetDB", "MonetDB" ]
There is a possibility for deadlock when one query queries sys.tables for the first time in that client's session (instantiating the tmp._tables temporary table), and another client updating a table that happens to have an id that has the same modulo 64 as tmp._tables. I.e., this is pretty specific **To Reproduce** This is hard to reproduce since it depends on exact timing and just the right table ids. **Expected behavior** No deadlock, obviously. **Screenshots** If applicable, add screenshots to help explain your problem.
deadlock, causing new connections to hang indefinitely
https://api.github.com/repos/MonetDB/MonetDB/issues/7526/comments
1
2024-05-29T10:46:20Z
2024-07-09T08:42:34Z
https://github.com/MonetDB/MonetDB/issues/7526
2,322,999,025
7,526
[ "MonetDB", "MonetDB" ]
**Describe the bug** The solution worked with numpy UDFs, but still not with C/C++ UDFs in which there is a strange behaviour: The aggr_group argument contains the data of the first parameter of the variadic aggregate. No other data is passed to the C UDF. **To Reproduce** Use the following commands: CREATE OR REPLACE AGGREGATE jit_sum(*) RETURNS BIGINT LANGUAGE C { // initialize one aggregate per group result->initialize(result, aggr_group.count); // zero initialize the sums memset(result->data, 0, result->count * sizeof(result->null_value)); // gather the sums for each of the groups for(size_t i = 0; i < arg2.count; i++) { result->data[aggr_group.data[i]] += input.data[i]; } }; CREATE TABLE vals(grp INTEGER, value INTEGER); INSERT INTO vals VALUES (1, 100), (2, 200), (1, 50), (2, 300); SELECT grp, jit_sum(value) FROM vals group by grp; It returns error for arg2. The following works, which means that parameter 'value' is stored in the aggr_group var. CREATE OR REPLACE AGGREGATE jit_sum(*) RETURNS BIGINT LANGUAGE C { // initialize one aggregate per group result->initialize(result, 1); // zero initialize the sums memset(result->data, 0, result->count * sizeof(result->null_value)); // gather the sums for each of the groups for(size_t i = 0; i < aggr_group.count; i++) { result->data[0] += aggr_group.data[i]; } }; SELECT grp, jit_sum(value) FROM vals;
Related to bug #7422 (variadic arguments in aggregate UDFs)
https://api.github.com/repos/MonetDB/MonetDB/issues/7525/comments
4
2024-05-28T14:00:36Z
2024-07-08T15:27:32Z
https://github.com/MonetDB/MonetDB/issues/7525
2,321,157,384
7,525
[ "MonetDB", "MonetDB" ]
**Describe the bug** An internal error occurs when executing a `NATURAL RIGHT JOIN` between two tables, where the `RIGHT JOIN` works correctly. **To Reproduce** ```sql CREATE TABLE t0(c0 INT); CREATE TABLE t1(c0 VARCHAR); SELECT * FROM t1 RIGHT JOIN t0 ON t1.c0 = t0.c0; -- empty table SELECT * FROM t1 NATURAL RIGHT JOIN t0; -- Error in optimizer multiplex: TypeException:user.main[19]:'calc.ifthenelse' undefined in: X_139:any := calc.ifthenelse(X_133:bit, X_135:int, X_137:str); ``` **Expected behavior** Empty table or handling the error gracefully **Screenshots** N/A **Software versions** Build from source: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.50.0 (hg id: 2d9ea21) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @20410e6e122d (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Unexpected error when using `NATURAL RIGHT JOIN`
https://api.github.com/repos/MonetDB/MonetDB/issues/7524/comments
0
2024-05-25T11:07:37Z
2024-06-27T13:20:19Z
https://github.com/MonetDB/MonetDB/issues/7524
2,316,933,430
7,524
[ "MonetDB", "MonetDB" ]
**Describe the bug** The `SELECT` statement should execute without causing the database to crash. Ideally, the query should return no rows or handle the `NULL` value appropriately according to SQL standards. **To Reproduce** ```sql DROP TABLE IF EXISTS t1 CASCADE; CREATE TABLE t1(c0 INTEGER); INSERT INTO t1(c0) VALUES (1); SELECT * FROM t1 WHERE CONTAINS(1, NULL); -- unexpected end of file ``` **Expected behavior** As mentioned above **Screenshots** backtrace (using gdb): ``` #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140168462124608) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=140168462124608) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=140168462124608, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x00007f7b8b8a5476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x00007f7b8b88b7f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x00007f7b8b88b71b in __assert_fail_base ( fmt=0x7f7b8ba40130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f7b8d27eb1f "!strNil(s)", file=0x7f7b8d27eae8 "/app/MonetDB/monetdb5/modules/atoms/str.c", line=163, function=<optimized out>) at ./assert/assert.c:92 #6 0x00007f7b8b89ce96 in __GI___assert_fail (assertion=0x7f7b8d27eb1f "!strNil(s)", file=0x7f7b8d27eae8 "/app/MonetDB/monetdb5/modules/atoms/str.c", line=163, function=0x7f7b8d280988 <__PRETTY_FUNCTION__.73> "str_strlen") at ./assert/assert.c:101 #7 0x00007f7b8d09fdef in str_strlen () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #8 0x00007f7b8d0ac038 in STRselect () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #9 0x00007f7b8d0ad301 in STRcontainsselect () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #10 0x00007f7b8d06e967 in runMALsequence () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #11 0x00007f7b8d0728c0 in DFLOWworker () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #12 0x00007f7b8c33fa48 in thread_starter () from /usr/local/lib/libbat-11.50.0.so.28 #13 0x00007f7b8b8f7ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #14 0x00007f7b8b988a04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 ``` **Software versions** Build from source https://www.monetdb.org/documentation-Dec2023/dev-guide/installation-from-source/#summary: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.50.0 (hg id: 6e3d6f5) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @7094a4ca4432 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Assertion failure when using `CONTAINS`
https://api.github.com/repos/MonetDB/MonetDB/issues/7523/comments
0
2024-05-24T05:55:22Z
2024-06-27T13:20:18Z
https://github.com/MonetDB/MonetDB/issues/7523
2,314,458,645
7,523
[ "MonetDB", "MonetDB" ]
**Describe the bug** The following test case crashed the monetdb server. **To Reproduce** ```sql DROP TABLE IF EXISTS t0 CASCADE; CREATE TABLE t0(c0 INT, PRIMARY KEY(c0)); CREATE VIEW v0(c0) AS SELECT '' FROM t0 HAVING ((t0.c0 BETWEEN t0.c0 AND t0.c0)); -- unexpected end of file ``` **Expected behavior** No crash. **Screenshots** backtrace (using gdb): ``` #0 0x00007f742a4b4a1d in group_by_pk_project_uk_cond () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #1 0x00007f742a4b649f in rel_column_ref () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #2 0x00007f742a4cc134 in rel_value_exp2 () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #3 0x00007f742a4ccaa2 in rel_value_exp () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #4 0x00007f742a4bd403 in rel_logical_exp () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #5 0x00007f742a4cd8b2 in rel_having_limits_nodes () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #6 0x00007f742a4cecf2 in rel_select_exp () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #7 0x00007f742a4cf221 in rel_query () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #8 0x00007f742a4d0cdc in rel_subquery () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #9 0x00007f742a4d0ed6 in rel_selects () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #10 0x00007f742a4d0ff5 in schema_selects () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #11 0x00007f742a4e4f55 in rel_create_view () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #12 0x00007f742a4ec465 in rel_schemas () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #13 0x00007f742a4ad83d in rel_semantic () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #14 0x00007f742a2c4f7f in sql_symbol2relation () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #15 0x00007f742a2f207d in SQLparser_body () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #16 0x00007f742a2f3171 in SQLparser () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #17 0x00007f742a2f3310 in SQLengine_ () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #18 0x00007f742a2f33e6 in SQLengine () from /usr/local/lib/libmonetdbsql-11.50.0.so.14 #19 0x00007f742c7e9733 in runScenarioBody () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #20 0x00007f742c7e9841 in runScenario () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #21 0x00007f742c7eb79c in MSserveClient () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #22 0x00007f742c7eafa7 in MSscheduleClient () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #23 0x00007f742c8ee062 in doChallenge () from /usr/local/lib/libmonetdb5-11.50.0.so.35 #24 0x00007f742ba97a48 in thread_starter () from /usr/local/lib/libbat-11.50.0.so.28 #25 0x00007f742b04fac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #26 0x00007f742b0e0a04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100 ``` **Software versions** Build from source https://www.monetdb.org/documentation-Dec2023/dev-guide/installation-from-source/#summary: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.50.0 (hg id: 6e3d6f5) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @7094a4ca4432 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Crash when creating view with `HAVING`
https://api.github.com/repos/MonetDB/MonetDB/issues/7522/comments
1
2024-05-24T05:54:53Z
2024-06-27T13:20:18Z
https://github.com/MonetDB/MonetDB/issues/7522
2,314,457,766
7,522
[ "MonetDB", "MonetDB" ]
**Describe the bug** The `IS DISTINCT FROM` operator in MonetDB returns unexpected results when used with `NULL`. Specifically, the negation of `NULL IS DISTINCT FROM NULL` returns `NULL` instead of `true`. **To Reproduce** ```sql SELECT (NULL IS DISTINCT FROM NULL); -- false SELECT NOT (NULL IS DISTINCT FROM NULL); -- null (unexpected) ``` **Expected behavior** As mentioned above. **Screenshots** N/A **Software versions** Build from source: ``` > docker exec -it monetdb-test mserver5 --version MonetDB 5 server 11.50.0 (hg id: 6e3d6f5) (64-bit, 128-bit integers) This is an unreleased version Copyright (c) 1993 - July 2008 CWI Copyright (c) August 2008 - 2023 MonetDB B.V., all rights reserved Visit https://www.monetdb.org/ for further information Found 503.5GiB available memory, 128 available cpu cores Libraries: Compiled by: @7094a4ca4432 (x86_64-pc-linux-gnu) Compilation: /usr/bin/cc Linking : /usr/bin/ld ``` **Issue labeling** Bug **Additional context** Add any other context about the problem here.
Unexpected result when using `IS DISTINCT FROM`
https://api.github.com/repos/MonetDB/MonetDB/issues/7521/comments
1
2024-05-24T05:53:54Z
2024-06-27T13:20:17Z
https://github.com/MonetDB/MonetDB/issues/7521
2,314,456,151
7,521
[ "MonetDB", "MonetDB" ]
**Is your feature request related to a problem? Please describe.** Hello, DOMAIN is an old but useful SQL feature. A domain is essentially a data type with optional constraints (restrictions on the allowed set of values). The user who defines a domain becomes its owner. But it can also be used for data cataloging/governance. Some documentation here https://www.sqlines.com/postgresql/statements/create_domain **Describe the solution you'd like** Support for CREATE, DROP, ALTER DOMAIN **Describe alternatives you've considered** N/A **Additional context** Already supported by tons of database
Support for ANSI SQL DOMAIN
https://api.github.com/repos/MonetDB/MonetDB/issues/7520/comments
1
2024-05-23T08:12:10Z
2024-06-27T13:20:16Z
https://github.com/MonetDB/MonetDB/issues/7520
2,312,256,835
7,520
[ "MonetDB", "MonetDB" ]
**Is your feature request related to a problem? Please describe.** Union with different columns (maybe union by name like duckdb syntax) : very often in analytics, we build « fact tables » that are union of different « facts » at different granularity and fields. It’s painful to build a SQL union in that case. Here an example : SELECT 'sales' AS source_table, sale_id, Null as invoice_id, sale_date as fact_date, customer_id, product_id, quantity, unit_price, quantity* unit_price as sales_amount, Null as invoice_amount FROM sales UNION BY NAME SELECT 'invoice' AS source_table, Null as sale_id, invoice_id, invoice_date as fact_date customer_id, Null as product_id, Null as quantity, Null as unit_price, Null as sales_amount, invoice_amount FROM invoice; **Describe the solution you'd like** <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 15"> <meta name=Originator content="Microsoft Word 15"> <link rel=File-List href="file:///C:/Users/saubert/AppData/Local/Temp/msohtmlclip1/01/clip_filelist.xml"> <link rel=themeData href="file:///C:/Users/saubert/AppData/Local/Temp/msohtmlclip1/01/clip_themedata.thmx"> <link rel=colorSchemeMapping href="file:///C:/Users/saubert/AppData/Local/Temp/msohtmlclip1/01/clip_colorschememapping.xml"> <!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves/> <w:TrackFormatting/> <w:HyphenationZone>21</w:HyphenationZone> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF/> <w:LidThemeOther>FR</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:SplitPgBreakAndParaMark/> <w:EnableOpenTypeKerning/> <w:DontFlipMirrorIndents/> <w:OverrideTableStyleHps/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathPr> <m:mathFont m:val="Cambria Math"/> <m:brkBin m:val="before"/> <m:brkBinSub m:val="&#45;-"/> <m:smallFrac m:val="off"/> <m:dispDef/> <m:lMargin m:val="0"/> <m:rMargin m:val="0"/> <m:defJc m:val="centerGroup"/> <m:wrapIndent m:val="1440"/> <m:intLim m:val="subSup"/> <m:naryLim m:val="undOvr"/> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="false" DefSemiHidden="false" DefQFormat="false" DefPriority="99" LatentStyleCount="376"> <w:LsdException Locked="false" Priority="0" QFormat="true" Name="Normal"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 1"/> <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 2"/> <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 3"/> <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 4"/> <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 5"/> <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 6"/> <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 7"/> <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 8"/> <w:LsdException Locked="false" Priority="9" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="heading 9"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 1"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 4"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 5"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 6"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 7"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 8"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index 9"/> <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 1"/> <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 2"/> <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 3"/> <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 4"/> <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 5"/> <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 6"/> <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 7"/> <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 8"/> <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" Name="toc 9"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Normal Indent"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="footnote text"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="annotation text"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="header"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="footer"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="index heading"/> <w:LsdException Locked="false" Priority="35" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="caption"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="table of figures"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="envelope address"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="envelope return"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="footnote reference"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="annotation reference"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="line number"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="page number"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="endnote reference"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="endnote text"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="table of authorities"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="macro"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="toa heading"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Bullet"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Number"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List 4"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List 5"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Bullet 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Bullet 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Bullet 4"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Bullet 5"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Number 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Number 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Number 4"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Number 5"/> <w:LsdException Locked="false" Priority="10" QFormat="true" Name="Title"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Closing"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Signature"/> <w:LsdException Locked="false" Priority="1" SemiHidden="true" UnhideWhenUsed="true" Name="Default Paragraph Font"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text Indent"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Continue"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Continue 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Continue 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Continue 4"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="List Continue 5"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Message Header"/> <w:LsdException Locked="false" Priority="11" QFormat="true" Name="Subtitle"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Salutation"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Date"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text First Indent"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text First Indent 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Note Heading"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text Indent 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Body Text Indent 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Block Text"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Hyperlink"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="FollowedHyperlink"/> <w:LsdException Locked="false" Priority="22" QFormat="true" Name="Strong"/> <w:LsdException Locked="false" Priority="20" QFormat="true" Name="Emphasis"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Document Map"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Plain Text"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="E-mail Signature"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Top of Form"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Bottom of Form"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Normal (Web)"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Acronym"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Address"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Cite"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Code"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Definition"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Keyboard"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Preformatted"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Sample"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Typewriter"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="HTML Variable"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Normal Table"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="annotation subject"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="No List"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Outline List 1"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Outline List 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Outline List 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Simple 1"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Simple 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Simple 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Classic 1"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Classic 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Classic 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Classic 4"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Colorful 1"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Colorful 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Colorful 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Columns 1"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Columns 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Columns 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Columns 4"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Columns 5"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 1"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 4"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 5"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 6"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 7"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Grid 8"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 1"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 4"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 5"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 6"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 7"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table List 8"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table 3D effects 1"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table 3D effects 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table 3D effects 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Contemporary"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Elegant"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Professional"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Subtle 1"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Subtle 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Web 1"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Web 2"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Web 3"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Balloon Text"/> <w:LsdException Locked="false" Priority="39" Name="Table Grid"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Table Theme"/> <w:LsdException Locked="false" SemiHidden="true" Name="Placeholder Text"/> <w:LsdException Locked="false" Priority="1" QFormat="true" Name="No Spacing"/> <w:LsdException Locked="false" Priority="60" Name="Light Shading"/> <w:LsdException Locked="false" Priority="61" Name="Light List"/> <w:LsdException Locked="false" Priority="62" Name="Light Grid"/> <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1"/> <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2"/> <w:LsdException Locked="false" Priority="65" Name="Medium List 1"/> <w:LsdException Locked="false" Priority="66" Name="Medium List 2"/> <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1"/> <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2"/> <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3"/> <w:LsdException Locked="false" Priority="70" Name="Dark List"/> <w:LsdException Locked="false" Priority="71" Name="Colorful Shading"/> <w:LsdException Locked="false" Priority="72" Name="Colorful List"/> <w:LsdException Locked="false" Priority="73" Name="Colorful Grid"/> <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 1"/> <w:LsdException Locked="false" Priority="61" Name="Light List Accent 1"/> <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 1"/> <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 1"/> <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 1"/> <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 1"/> <w:LsdException Locked="false" SemiHidden="true" Name="Revision"/> <w:LsdException Locked="false" Priority="34" QFormat="true" Name="List Paragraph"/> <w:LsdException Locked="false" Priority="29" QFormat="true" Name="Quote"/> <w:LsdException Locked="false" Priority="30" QFormat="true" Name="Intense Quote"/> <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 1"/> <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 1"/> <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 1"/> <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 1"/> <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 1"/> <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 1"/> <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 1"/> <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 1"/> <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 2"/> <w:LsdException Locked="false" Priority="61" Name="Light List Accent 2"/> <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 2"/> <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 2"/> <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 2"/> <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 2"/> <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 2"/> <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 2"/> <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 2"/> <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 2"/> <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 2"/> <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 2"/> <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 2"/> <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 2"/> <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 3"/> <w:LsdException Locked="false" Priority="61" Name="Light List Accent 3"/> <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 3"/> <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 3"/> <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 3"/> <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 3"/> <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 3"/> <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 3"/> <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 3"/> <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 3"/> <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 3"/> <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 3"/> <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 3"/> <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 3"/> <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 4"/> <w:LsdException Locked="false" Priority="61" Name="Light List Accent 4"/> <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 4"/> <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 4"/> <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 4"/> <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 4"/> <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 4"/> <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 4"/> <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 4"/> <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 4"/> <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 4"/> <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 4"/> <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 4"/> <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 4"/> <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 5"/> <w:LsdException Locked="false" Priority="61" Name="Light List Accent 5"/> <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 5"/> <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 5"/> <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 5"/> <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 5"/> <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 5"/> <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 5"/> <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 5"/> <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 5"/> <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 5"/> <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 5"/> <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 5"/> <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 5"/> <w:LsdException Locked="false" Priority="60" Name="Light Shading Accent 6"/> <w:LsdException Locked="false" Priority="61" Name="Light List Accent 6"/> <w:LsdException Locked="false" Priority="62" Name="Light Grid Accent 6"/> <w:LsdException Locked="false" Priority="63" Name="Medium Shading 1 Accent 6"/> <w:LsdException Locked="false" Priority="64" Name="Medium Shading 2 Accent 6"/> <w:LsdException Locked="false" Priority="65" Name="Medium List 1 Accent 6"/> <w:LsdException Locked="false" Priority="66" Name="Medium List 2 Accent 6"/> <w:LsdException Locked="false" Priority="67" Name="Medium Grid 1 Accent 6"/> <w:LsdException Locked="false" Priority="68" Name="Medium Grid 2 Accent 6"/> <w:LsdException Locked="false" Priority="69" Name="Medium Grid 3 Accent 6"/> <w:LsdException Locked="false" Priority="70" Name="Dark List Accent 6"/> <w:LsdException Locked="false" Priority="71" Name="Colorful Shading Accent 6"/> <w:LsdException Locked="false" Priority="72" Name="Colorful List Accent 6"/> <w:LsdException Locked="false" Priority="73" Name="Colorful Grid Accent 6"/> <w:LsdException Locked="false" Priority="19" QFormat="true" Name="Subtle Emphasis"/> <w:LsdException Locked="false" Priority="21" QFormat="true" Name="Intense Emphasis"/> <w:LsdException Locked="false" Priority="31" QFormat="true" Name="Subtle Reference"/> <w:LsdException Locked="false" Priority="32" QFormat="true" Name="Intense Reference"/> <w:LsdException Locked="false" Priority="33" QFormat="true" Name="Book Title"/> <w:LsdException Locked="false" Priority="37" SemiHidden="true" UnhideWhenUsed="true" Name="Bibliography"/> <w:LsdException Locked="false" Priority="39" SemiHidden="true" UnhideWhenUsed="true" QFormat="true" Name="TOC Heading"/> <w:LsdException Locked="false" Priority="41" Name="Plain Table 1"/> <w:LsdException Locked="false" Priority="42" Name="Plain Table 2"/> <w:LsdException Locked="false" Priority="43" Name="Plain Table 3"/> <w:LsdException Locked="false" Priority="44" Name="Plain Table 4"/> <w:LsdException Locked="false" Priority="45" Name="Plain Table 5"/> <w:LsdException Locked="false" Priority="40" Name="Grid Table Light"/> <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light"/> <w:LsdException Locked="false" Priority="47" Name="Grid Table 2"/> <w:LsdException Locked="false" Priority="48" Name="Grid Table 3"/> <w:LsdException Locked="false" Priority="49" Name="Grid Table 4"/> <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark"/> <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful"/> <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful"/> <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 1"/> <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 1"/> <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 1"/> <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 1"/> <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 1"/> <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 1"/> <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 1"/> <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 2"/> <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 2"/> <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 2"/> <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 2"/> <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 2"/> <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 2"/> <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 2"/> <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 3"/> <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 3"/> <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 3"/> <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 3"/> <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 3"/> <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 3"/> <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 3"/> <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 4"/> <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 4"/> <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 4"/> <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 4"/> <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 4"/> <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 4"/> <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 4"/> <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 5"/> <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 5"/> <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 5"/> <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 5"/> <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 5"/> <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 5"/> <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 5"/> <w:LsdException Locked="false" Priority="46" Name="Grid Table 1 Light Accent 6"/> <w:LsdException Locked="false" Priority="47" Name="Grid Table 2 Accent 6"/> <w:LsdException Locked="false" Priority="48" Name="Grid Table 3 Accent 6"/> <w:LsdException Locked="false" Priority="49" Name="Grid Table 4 Accent 6"/> <w:LsdException Locked="false" Priority="50" Name="Grid Table 5 Dark Accent 6"/> <w:LsdException Locked="false" Priority="51" Name="Grid Table 6 Colorful Accent 6"/> <w:LsdException Locked="false" Priority="52" Name="Grid Table 7 Colorful Accent 6"/> <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light"/> <w:LsdException Locked="false" Priority="47" Name="List Table 2"/> <w:LsdException Locked="false" Priority="48" Name="List Table 3"/> <w:LsdException Locked="false" Priority="49" Name="List Table 4"/> <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark"/> <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful"/> <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful"/> <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 1"/> <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 1"/> <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 1"/> <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 1"/> <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 1"/> <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 1"/> <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 1"/> <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 2"/> <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 2"/> <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 2"/> <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 2"/> <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 2"/> <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 2"/> <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 2"/> <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 3"/> <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 3"/> <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 3"/> <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 3"/> <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 3"/> <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 3"/> <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 3"/> <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 4"/> <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 4"/> <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 4"/> <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 4"/> <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 4"/> <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 4"/> <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 4"/> <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 5"/> <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 5"/> <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 5"/> <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 5"/> <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 5"/> <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 5"/> <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 5"/> <w:LsdException Locked="false" Priority="46" Name="List Table 1 Light Accent 6"/> <w:LsdException Locked="false" Priority="47" Name="List Table 2 Accent 6"/> <w:LsdException Locked="false" Priority="48" Name="List Table 3 Accent 6"/> <w:LsdException Locked="false" Priority="49" Name="List Table 4 Accent 6"/> <w:LsdException Locked="false" Priority="50" Name="List Table 5 Dark Accent 6"/> <w:LsdException Locked="false" Priority="51" Name="List Table 6 Colorful Accent 6"/> <w:LsdException Locked="false" Priority="52" Name="List Table 7 Colorful Accent 6"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Mention"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Smart Hyperlink"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Hashtag"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Unresolved Mention"/> <w:LsdException Locked="false" SemiHidden="true" UnhideWhenUsed="true" Name="Smart Link"/> </w:LatentStyles> </xml><![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-536869121 1107305727 33554432 0 415 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-469750017 -1073732485 9 0 511 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-ligatures:standardcontextual;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; mso-font-kerning:0pt; mso-ligatures:none;} @page WordSection1 {size:612.0pt 792.0pt; margin:70.85pt 70.85pt 70.85pt 70.85pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.WordSection1 {page:WordSection1;} --> </style> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tableau Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman",serif;} </style> <![endif]--> </head> <body lang=FR style='tab-interval:35.4pt;word-wrap:break-word'> <!--StartFragment--> <p class=MsoNormal>I would like to write something like that, lighter, easier<br> <br> <i>SELECT <o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp;&nbsp;'sales' AS source_table,<o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp; sale_id,<o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp; sale_date as fact_date,<o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp; customer_id,<o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp; product_id,<o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp; quantity,<o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp; unit_price,<o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp; quantity* unit_price as sales_amount<o:p></o:p></i></p> <p class=MsoNormal><i>FROM <o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp;&nbsp;sales<o:p></o:p></i></p> <p class=MsoNormal><i><o:p>&nbsp;</o:p></i></p> <p class=MsoNormal><i>UNION BY NAME<o:p></o:p></i></p> <p class=MsoNormal><i><o:p>&nbsp;</o:p></i></p> <p class=MsoNormal><i>SELECT <o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp;&nbsp;'invoice' AS source_table,<o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp; invoice_id,<o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp; invoice_date as fact_date<o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp; customer_id,<o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp; invoice_amount<o:p></o:p></i></p> <p class=MsoNormal><i>FROM <o:p></o:p></i></p> <p class=MsoNormal><i>&nbsp;&nbsp;&nbsp;&nbsp;invoice;<o:p></o:p></i></p> <p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p> <p class=MsoNormal><o:p>&nbsp;</o:p></p> <p class=MsoNormal style='margin-bottom:12.0pt'><span style='color:#7F6000'>SAU&nbsp;: It’s always better with an example. (It works that way with Tableau, Alteryx, Dataiku, Qlik….). UNION BY NAME is my favorite syntax since it’s already implemented in some DB (and yes, DuckDB again).<o:p></o:p></span></p> Sales |   |   |   |   |   |   |   |   |   -- | -- | -- | -- | -- | -- | -- | -- | -- | -- sales_id | sale_date | customer_id | product_id | quantity | unit_price |   |   |   |   1 | 01/01/2023 | 1000 | 101 | 10 | 2 |   |   |   |   2 | 02/01/2023 | 1000 | 103 | 5 | 3 |   |   |   |   3 | 03/01/2023 | 1001 | 105 | 7 | 5 |   |   |   |   4 | 04/01/2023 | 1003 | 107 | 6 | 8 |   |   |   |   5 | 05/01/2023 | 1002 | 109 | 125 | 7 |   |   |   |     |   |   |   |   |   |   |   |   |   Invoice |   |   |   |   |   |   |   |   |   invoice_id | invoice_date | customer_id | invoice_amount |   |   |   |   |   |   45 | 02/01/2023 | 1000 | 40 |   |   |   |   |   |   74 | 03/01/2023 | 1001 | 37 |   |   |   |   |   |   103 | 04/01/2023 | 1003 | 45 |   |   |   |   |   |   132 | 05/01/2023 | 1002 | 800 |   |   |   |   |   |     |   |   |   |   |   |   |   |   |     |   |   |   |   |   |   |   |   |   Result of my upper query with Union By Name |   |   |   |   |   |   |   |   |   source_table | sales_id | fact_date | customer_id | product_id | quantity | unit_price | sales_amount | invoice_id | invoice_amount sales | 1 | 01/01/2023 | 1000 | 101 | 10 | 2 | 20 |   |   sales | 2 | 02/01/2023 | 1000 | 103 | 5 | 3 | 15 |   |   sales | 3 | 03/01/2023 | 1001 | 105 | 7 | 5 | 35 |   |   sales | 4 | 04/01/2023 | 1003 | 107 | 6 | 8 | 48 |   |   sales | 5 | 05/01/2023 | 1002 | 109 | 125 | 7 | 875 |   |   invoices |   | 02/01/2023 | 1000 |   |   |   |   | 45 | 40 invoices |   | 03/01/2023 | 1001 |   |   |   |   | 74 | 37 invoices |   | 04/01/2023 | 1003 |   |   |   |   | 103 | 45 invoices |   | 05/01/2023 | 1002 |   |   |   |   | 132 | 800 <p class=MsoNormal><span style='color:#7F6000'><o:p>&nbsp;</o:p></span></p> <p class=MsoNormal><span style='color:#7F6000'><o:p>&nbsp;</o:p></span></p> <!--EndFragment--> </body> </html> **Describe alternatives you've considered** N/A **Additional context** Just for your information, I wrote to the guys at ANSI in charge of SQL about this function, they will discuss it.
Union by name
https://api.github.com/repos/MonetDB/MonetDB/issues/7519/comments
1
2024-05-23T06:53:59Z
2024-05-23T07:07:43Z
https://github.com/MonetDB/MonetDB/issues/7519
2,312,103,341
7,519
[ "MonetDB", "MonetDB" ]
**Describe the bug** When the server starts with the geom module loaded, but the database had been created by a server where the geom module was not loaded, upgrade code is run, but that upgrade code produces an error. **To Reproduce** dnf install MonetDB mserver5 --dbpath=... # stop mserver dnf install MonetDB-geom-MonetDB5 mserver5 --dbpath=... Look at mserver5 output and note the errors. **Expected behavior** No errors. **Software versions** - Dec2023-SP3
mserver reports errors when starting if geom module is enabled but database was created without
https://api.github.com/repos/MonetDB/MonetDB/issues/7518/comments
0
2024-05-21T12:15:27Z
2024-07-09T08:42:33Z
https://github.com/MonetDB/MonetDB/issues/7518
2,308,162,703
7,518
[ "MonetDB", "MonetDB" ]
**Describe the bug** Dropping an UNLOGGED table does not delete the BATs associated with that table, neither from the BBP.dir file, nor from the file system. **To Reproduce** CREATE UNLOGGED TABLE foo (x int); INSERT INTO foo VALUES (1); SELECT * FROM sys.storage('sys','foo'); -- so we can see which BATs we're talking about DROP TABLE foo; Then wait for WAL rotation and check the BBP.dir file for the BAT reported by sys.storage. **Expected behavior** The BATs should be removed. **Screenshots** If applicable, add screenshots to help explain your problem. **Software versions** Dec2023-SP3
UNLOGGED tables don't get cleaned up properly when DROPped.
https://api.github.com/repos/MonetDB/MonetDB/issues/7517/comments
0
2024-05-17T14:33:43Z
2024-07-15T10:39:10Z
https://github.com/MonetDB/MonetDB/issues/7517
2,302,913,726
7,517