Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SELECT * bug fixes #7

Merged
merged 3 commits into from
Aug 14, 2020
Merged

Conversation

soumilm
Copy link
Collaborator

@soumilm soumilm commented Aug 13, 2020

No description provided.

@tanujnay112 tanujnay112 merged commit f4408c9 into tanujnay112:abstractify Aug 14, 2020
tanujnay112 pushed a commit that referenced this pull request Aug 24, 2020
* Hackathon: Position() string function added (#7)

* Add Position logic in string_functions

* Added function declaration and TPL bytecode for Postion

* Added semantic checking/typing for Position

* Changes to VM and bytecode generator for Position function

* Added position function to catalog

* Changes to get Position() working - with Junit test

* Missing Junit test changes

* Fixed format errors

* Use custom search function to avoid copying the strings

Co-authored-by: Abhijith Anilkumar <abhijithanilkumar@live.com>
Co-authored-by: Arvind Sai Krishnan <arvindsk@andrew.cmu.edu>
(cherry picked from commit 5da6124)

* Fix StringFunctions::Position

(cherry picked from commit 55a2a10)

* Update position bytecode generator

* Fix broken tests

* Add position test traces

* The ASCII function returns the ascii value of the first character in the string that is passed into it. This commit includes implementation (in string_functions and built-in specification files), integration (in database_catalog), a C++ test (in string_functions_test), and a Junit test (in FunctionsTest).

* Recommended fixes to implementation

* Update emitter and str length functions for ascii

* chr

* builtin

* fixed chr

* fixed bytes

* exp

* charlength

* c++ test

* Update emitter func and remove dup vars

* Fix order of OpCharLength call

* Set return type of builtin string functions

* Format code and fix tests

* Add test traces for exp, ascii, chr, char_length

* Fix formatting and ordering

* Remove comment

* Refactor string function signatures

* Organize pg_proc numbers

* Fix typo

* Organize pg_proc ids

* Fix format

* Fix pg_proc ids

* Change type of Builtin enum from uint8_t to uint16_t

* Remove uneccessary calls to Resolve

* Format code blocks

* Remove redundant null checks

* Fix comments

Co-authored-by: Andy Pavlo <pavlo@cs.brown.edu>
Co-authored-by: Paulina Davison <pldaviso@andrew.cmu.edu>
Co-authored-by: YingjingLu <yingjinglu2019us@gmail.com>
Co-authored-by: wuwenw <wuwenw@andrew.cmu.edu>
Co-authored-by: Matt Butrovich <mbutrovich@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants