Staff Engineer SQL Engine
Software engineeringPosted over 2 months agofrom Yugabyte's own hiring page
- Work type
- HybridSan Francisco Bay Area
- Experience
- 8+ years
- Pay
- $150k–250k a year
- Posted
- Over 2 months agoOpen 10 months
From the ad
No visa sponsorship
immigration policy, we’re currently unable to sponsor new H-1B visas for candidates outside the United States
Degree or equivalent experience
Bachelor’s, Master’s, or PhD in Computer Science (or related field), or equivalent practical experience
Skills it mentions
Add your skills to see which ones you have.
About the job
Yugabyte is the company behind YugabyteDB, the AI-ready, multi-modal, distributed PostgreSQL database for cloud-native apps. Trusted by industry leaders including Shopify, Paramount+, GM, Kroger, Fiserv, and NPCI, YugabyteDB has been deployed in over 100 countries and powers more than 5 million clusters worldwide.
Together, our hard-working team of experts and our industry-leading technology are uniquely positioned to meet the demands of modern workloads: geo-distributed, ultra-resilient, and built to scale without limits.
Our Yugabeings (distributed, like our database) span 12+ countries and multiple time zones, sharing expertise from diverse backgrounds and industries.
Staff Engineer – Languages & Relational Technologies (LRT)
Role Overview
As a Staff Engineer on the Languages & Relational Technologies (LRT) team, you will help design, build, and scale core database features that power YugabyteDB’s SQL layer. You will collaborate with cross-functional engineering teams to solve complex problems affecting distributed query planning, execution, and performance, ensuring YugabyteDB remains robust, reliable, and performance at scale.
Key Responsibilities
- Lead the design, development, testing, and release of new database features and enhancements in YugabyteDB.
- Write high-quality C/C++ code (and contribute in other languages as needed) with comprehensive automated tests; participate actively in code reviews.
- Identify and implement performance improvements — including plan optimization, batching/parallelism, and advanced push-downs to data nodes.
- Improve database scalability and throughput as cluster sizes and transaction volumes grow.
- Contribute to the open source YugabyteDB project and help strengthen our distributed SQL capabilities across releases.
- Troubleshoot and resolve correctness, stability, and performance issues in complex distributed query planning and execution paths.
- Mentor and influence other engineers in best practices for database internals, distributed systems, and performance-oriented software development.
Required Qualifications
- 8+ years of professional experience in software engineering, with a strong foundation in compiled languages such as C/C++.
- Bachelor’s, Master’s, or PhD in Computer Science (or related field), or equivalent practical experience.
- Deep understanding of systems engineering fundamentals, including operating systems, distributed systems, and databases.
- Experience with database internals, compilers, or query planning/optimization is a strong plus.
- Strong problem-solving skills and the ability to operate effectively in a collaborative, distributed team environment
Preferred Skills
- Experience building large-scale distributed systems and transactional engines.
- Familiarity with PostgreSQL internals or other relational database engines.
- Contributions to open source database or systems projects.
- Prior leadership in technical architecture, performance tuning, and mentoring engineers.
We work in a hybrid model, with the team together in our Sunnyvale office 2–3 days per week.
We feel strongly about equal pay for equal work, and transparency in compensation is one way to help achieve that. The cash compensation for this role is market competitive, with a range of USD 150,000 - USD 250,000, inclusive of variable/incentive for some roles. As well as equity (when applicable), and benefits including health plans, retirement plans, and unlimited paid time off (PTO). The pay range for this position is a general guideline only and not a guarantee of compensation or salary. The actual pay will vary based on factors including experience, qualifications, and skill level.
Equal Employment Opportunity Statement:
As an equal opportunity employer, Yugabyte is committed to a diverse workforce. Employment decisions regarding recruitment and selection will be made without discrimination based on race, color, religion, national origin, gender, age, sexual orientation, physical or mental disability, genetic information or characteristic, gender identity and expression, veteran status, or other non-job related characteristics or other prohibited grounds specified in applicable federal, state and local laws.
Regarding visa sponsorship: Due to recent changes in U.S. immigration policy, we’re currently unable to sponsor new H-1B visas for candidates outside the United States. We’re happy to consider candidates who need an H-1B transfer or extension, as well as candidates in the U.S. on F-1 status (including CPT or OPT) who would need to change to H-1B status. Candidates with other types of valid work authorization are also welcome to apply.
Equal Employment Opportunity Statement:
As an equal opportunity employer, Yugabyte is committed to a diverse workforce. Employment decisions regarding recruitment and selection will be made without discrimination based on race, color, religion, national origin, gender, age, sexual orientation, physical or mental disability, genetic information or characteristic, gender identity and expression, veteran status, or other non-job related characteristics or other prohibited grounds specified in applicable federal, state and local laws.
To review Yugabyte's Privacy Policy please visit Yugabyte Privacy Notice.
Interested?Staff Engineer SQL Engine at Yugabyte
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on SQL, PostgreSQL, C and 2 more
Interview questions for this job
For the skills the ad mentions: SQL, PostgreSQL, C, C++ and Test automation.
Does it make sense to add an index on a column with a highly skewed distribution to selectively query the minority value?SQL
Partial indexes are a powerful tool for optimizing database performance when you consistently query a subset of your data. Links
- https://oneuptime.com/blog/post/2026-01-30-partial-index-design/view
From Java interview (MIT)
What is a valid use case for using TIMESTAMP WITHOUT TIME ZONE?PostgreSQL
This is stated in a lot of places, but I think it worth mentioning always when we compare the
timestamp with time zonewithtimestamp without time zonetypes: thetimestamp WITH time zonedoes not store the time zone information along with the timestamp. What it does is to store every data in UTC time zone, as stated in the docs:For timestamp with time zone, the internally stored value is always in UTC (Universal Coordinated Time, traditionally known as Greenwich Mean Time, GMT). An input value that has an explicit time zone specified is converted to UTC using the appropriate offset for that time zone. If no time zone is stated in the input string, then it is assumed to be in the time zone indicated by the system's TimeZone parameter, and is converted to UTC using the offset for the timezone zone.
It is considered valid for some to use
timestamp WITHOUT time zonein situations where (1) everything is in the same timezone or (2) the application layer handles the time zone and just store everything in a certain time zone (usually UTC). But it is also considered an anti-pattern, simple because the correct solution for (1) is to configure the TimeZone setting to the given one timezone for the system and (2) is already solved, as PostgreSQL already stores everything on the same timezone (UTC).Now, with those two down, I can came with only one good reason to use
timestamp WITHOUT time zone. That is when you want to store events in the future and that some kind of alert must be triggered when we got to that time. That could be good fortimestamp WITH time zoneif, and only if, the rules defined by region's laws about time zone didn't ever change. The most common rule that changes is about the adoption or not of day light saving time (DST).For example, imagine that you are at, let's say,
2013-06-15(not yet in DST) schedule some event to happen at2013-01-15 10:00(which would be already in DST), and at2013-06-15your region was designated to adopt DST; but, some time after that, the government changed the rule and say your region will no longer use DST, and suddenly your scheduled time becomes2013-01-15 11:00(instead of10:00), that if you usetimestamp WITH time zone, and keep your TZ configurations up-to-date. Of course you may also notice that it is possible to treat such cases also with time zone, if you keep track of the rule changes in the regions/timezones of your interest, and update the affected records.Worth mentioning that some regions does often change these rules (like at Brazil, some states - not the entire country - often change), but in most cases it changes it very earlier, so your users would be affected only by events scheduled very far from the current time.
With all that said, I only have one more suggestion. If you do have users, logs, or anything on different timezones, store the timezone they are coming from somewhere and choose and use
timestamp with time zone. That way you can (1) cross events happening closer to each other for different sources (independent of their timezones) and (2) show the original time (the clock time) the event has happened.From Database Administrators Stack Exchange: asked by Marcus Junius Brutus, answered by MatheusOl (CC BY-SA 3.0)
What is the difference between a definition and a declaration?C
A declaration introduces an identifier and describes its type, be it a type, object, or function. A declaration is what the compiler needs to accept references to that identifier. These are declarations:
extern int bar; extern int g(int, int); double f(int, double); // extern can be omitted for function declarations class foo; // no extern allowed for type declarationsA definition actually instantiates/implements this identifier. It's what the linker needs in order to link references to those entities. These are definitions corresponding to the above declarations:
int bar; int g(int lhs, int rhs) {return lhs*rhs;} double f(int i, double d) {return i+d;} class foo {};A definition can be used in the place of a declaration.
An identifier can be declared as often as you want. Thus, the following is legal in C and C++:
double f(int, double); double f(int, double); extern double f(int, double); // the same as the two above extern double f(int, double);However, it must be defined exactly once. If you forget to define something that's been declared and referenced somewhere, then the linker doesn't know what to link references to and complains about a missing symbols. If you define something more than once, then the linker doesn't know which of the definitions to link references to and complains about duplicated symbols.
Since the debate what is a class declaration vs. a class definition in C++ keeps coming up (in answers and comments to other questions) , I'll paste a quote from the C++ standard here.
At 3.1/2, C++03 says:A declaration is a definition unless it [...] is a class name declaration [...].
3.1/3 then gives a few examples. Amongst them:
[Example: [...] struct S { int a; int b; }; // defines S, S::a, and S::b [...] struct S; // declares S —end exampleTo sum it up: The C++ standard considers
struct x;to be a declaration andstruct x {};a definition. (In other words, "forward declaration" a misnomer, since there are no other forms of class declarations in C++.)Thanks to litb (Johannes Schaub) who dug out the actual chapter and verse in one of his answers.
From Stack Overflow: asked by Maciek, answered by sbi (CC BY-SA 3.0)
Why are elementwise additions much faster in separate loops than in a combined loop?C++
Upon further analysis of this, I believe this is (at least partially) caused by the data alignment of the four-pointers. This will cause some level of cache bank/way conflicts.
If I've guessed correctly on how you are allocating your arrays, they are likely to be aligned to the page line.
This means that all your accesses in each loop will fall on the same cache way. However, Intel processors have had 8-way L1 cache associativity for a while. But in reality, the performance isn't completely uniform. Accessing 4-ways is still slower than say 2-ways.
EDIT: It does in fact look like you are allocating all the arrays separately. Usually when such large allocations are requested, the allocator will request fresh pages from the OS. Therefore, there is a high chance that large allocations will appear at the same offset from a page-boundary.
Here's the test code:
int main(){ const int n = 100000; #ifdef ALLOCATE_SEPERATE double *a1 = (double*)malloc(n * sizeof(double)); double *b1 = (double*)malloc(n * sizeof(double)); double *c1 = (double*)malloc(n * sizeof(double)); double *d1 = (double*)malloc(n * sizeof(double)); #else double *a1 = (double*)malloc(n * sizeof(double) * 4); double *b1 = a1 + n; double *c1 = b1 + n; double *d1 = c1 + n; #endif // Zero the data to prevent any chance of denormals. memset(a1,0,n * sizeof(double)); memset(b1,0,n * sizeof(double)); memset(c1,0,n * sizeof(double)); memset(d1,0,n * sizeof(double)); // Print the addresses cout << a1 << endl; cout << b1 << endl; cout << c1 << endl; cout << d1 << endl; clock_t start = clock(); int c = 0; while (c++ < 10000){ #if ONE_LOOP for(int j=0;j<n;j++){ a1[j] += b1[j]; c1[j] += d1[j]; } #else for(int j=0;j<n;j++){ a1[j] += b1[j]; } for(int j=0;j<n;j++){ c1[j] += d1[j]; } #endif } clock_t end = clock(); cout << "seconds = " << (double)(end - start) / CLOCKS_PER_SEC << endl; system("pause"); return 0; }Benchmark Results:
EDIT: Results on an actual Core 2 architecture machine:
2 x Intel Xeon X5482 Harpertown @ 3.2 GHz:
#define ALLOCATE_SEPERATE #define ONE_LOOP 00600020 006D0020 007A0020 00870020 seconds = 6.206 #define ALLOCATE_SEPERATE //#define ONE_LOOP 005E0020 006B0020 00780020 00850020 seconds = 2.116 //#define ALLOCATE_SEPERATE #define ONE_LOOP 00570020 00633520 006F6A20 007B9F20 seconds = 1.894 //#define ALLOCATE_SEPERATE //#define ONE_LOOP 008C0020 00983520 00A46A20 00B09F20 seconds = 1.993Observations:
6.206 seconds with one loop and 2.116 seconds with two loops. This reproduces the OP's results exactly.
In the first two tests, the arrays are allocated separately. You'll notice that they all have the same alignment relative to the page.
In the second two tests, the arrays are packed together to break that alignment. Here you'll notice both loops are faster. Furthermore, the second (double) loop is now the slower one as you would normally expect.
As @Stephen Cannon points out in the comments, there is a very likely possibility that this alignment causes false aliasing in the load/store units or the cache. I Googled around for this and found that Intel actually has a hardware counter for partial address aliasing stalls:
5 Regions - Explanations
Region 1:
This one is easy. The dataset is so small that the performance is dominated by overhead like looping and branching.
Region 2:
Read the rest at the sourceFrom Stack Overflow: asked by Johannes Gerer, answered by Mysticial (CC BY-SA 4.0)
How can Internet Explorer 5 be emulated in 2020?Test automation
Given that the customer insists, I'd recommend using a virtual environment with IE5 installed, and then search for automation solutions that can work in that environment. This will be a challenge: you will need something that can operate on the elderly operating system (I think XP can run IE5, but I'm not sure about anything newer) and preferably something open source since I don't see your employer wanting to spend anything on an antique OS and an antique browser solution for one customer.
You probably can't use Selenium - as far as I can tell, the oldest version of IE they ever supported was IE6. You may be able to find a way to use some of the oldest version of the older test automation tools without having to pay a lot.
Good luck.
From Software Quality Assurance & Testing Stack Exchange: asked by Mornon, answered by Kate Paulk (CC BY-SA 4.0)
Why do you want to work for us?Behavioural
Employers want to see that you have a genuine interest in working for them by asking questions like:
- what do you know about our company?
- why do you think you're a good fit for our company?
- why do you want to work for us?
To prepare for questions about the employer, you need to research the company. You should look at their website and 'about us' pages to find out more about their products, services and values.
Show what you've learned about the company throughout the interview.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Member of Technical StaffClera, San Francisco Bay Area, on-siteToday
- Software Engineer, Safety Data FlywheelOpenAI, Remote, San Francisco Bay AreaYesterday
- Senior Staff Software EngineerFivetran, San Francisco Bay Area, hybridYesterday
- Senior Enterprise Applications EngineerMixpanel, San Francisco Bay Area, hybridYesterday
More like this: Software engineer jobs in San Francisco Bay Area (707), Jobs in San Francisco Bay Area (9,193) and Software engineer jobs in the USA (1,765)



