Skip to main content
PySpark.inData Engineering
Tutorials
  • Python
  • SQL
  • PySpark
  • Machine Learning
  • NLP
  • Deep Learning
  • Linear Algebra
  • Data Engineering
  • All Tutorials
Challenge Arena Compiler Interview Questions Certifications Blogs Jobs Projects CV Builder
Menu
  • All Tutorials
  • Python
  • SQL
  • PySpark
  • Data Engineering
  • Learning Paths
  • Certificate Tracks
  • PySpark Compiler
  • Challenge Arena
  • Projects
  • Production Incidents
  • Boss Battles
  • Datasets
  • Interview Questions
  • Interview Mode
  • Company Prep
  • Certifications
  • DE Roadmap
  • Jobs
  • CV Builder
  • Blogs
  • About
  • Contact

We use cookies to run the site, remember your progress, and serve ads via Google AdSense. By continuing you agree to our Privacy Policy.

Explore

homeAll TutorialscodeLearn PythonanalyticsLearn PySparkterminalOnline Compileremoji_eventsChallenge ArenaarticleBlogsquizInterview QuestionsinfoAbout Uscontact_mailContact Us

Popular Topics

#python#pyspark#sql#spark#dataengineering#bigdata
Home›Interview Questions›Apache Hive
🐝 Interview Prep

Apache Hive
Interview Questions

HiveQL, partitioning vs bucketing, ORC vs Parquet, SerDe, metastore architecture, and Tez vs MapReduce.

HiveQLPartitioningORCMetastoreTez
2Questions
FreeAlways
search
pyspark's profile picture
pyspark·
May 7, 2026Interview Question
Q.1

Difference between internal and external table in Hive?

Easy

Internal Table: Internal Table is also known as the managed table. When the user creates a table in Hive without specifying it as external, then by default, an internal table gets created in a specific location in HDFS. By default, an internal table will be created in a folder path /user/hive/warehouse If we drop the managed table or partition, the table data and the metadata associated with that table will be deleted from the HDFS.

It support truncate command

External Table: External tables are stored outside the warehouse directory. They can access data stored in sources such as remote HDFS locations or Azure Storage Volumes. Whenever we drop the external table, then only the metadata associated with the table will get deleted, the table data remains untouched by Hive.

It does not support truncate command


Vishal Taneja's profile picture
Vishal Taneja·
May 7, 2026Interview Question
Q.2

What is differnece between static and dynamic partition in hive?:

Easy
Static PartitionDynamic Partition
Usually when loading files (big files) into Hive tables static partitions are preferred.When you have large data stored in a table then Dynamic partition is suitable.
Static Partition saves your time in loading data compared to dynamic partition. You “statically” add a partition in table and move the file into the partition of the table.Single insert to partition table is known as dynamic partition. Usually dynamic partition load the data from non partitioned table. Dynamic Partition takes more time in loading data compared to static partition.
You can get the partition column value form the filename, day of date etc without reading the whole big file.When you have large data stored in a table then Dynamic partition is suitable.
We can alter the partition in static partition.If you want to partition number of column but you don’t know how many columns then also dynamic partition is suitable. we can’t perform alter on Dynamic partition.
If you want to use Static partition in hive you should set property:set hive.mapred.mode = strictIf you want to partition number of column but you don’t know how many columns then also dynamic partition is suitable.Dynamic partition in hive then mode is in nonstrict mode. Here is hive dynamic partition properties you should allow:SET hive.exec.dynamic.partition = true;SET hive.exec.dynamic.partition.mode = nonstrict;
PySpark.inData Engineering

A learning and career platform for Data Engineering — structured tutorials, a browser-based PySpark compiler, coding challenges, interview preparation and certifications.

Learn

  • Python
  • SQL
  • PySpark
  • Machine Learning
  • NLP
  • Deep Learning
  • Linear Algebra
  • Data Engineering
  • All Tutorials

Practise

  • PySpark Compiler
  • Challenge Arena
  • Challenges by Topic
  • Dataset Library
  • Interview Questions

Career

  • Certifications
  • CV Builder
  • Jobs

Resources

  • Blogs
  • Projects
  • Certificate Tracks

Company

  • About
  • Contact
  • Terms
  • Privacy Policy

Stay ahead in Data Engineering

Weekly tutorials, PySpark tips, SQL challenges and interview questions.

© 2026 PySpark.in. All rights reserved.

TermsPrivacyCookies